/*
Theme Name: CA13 Magius Style (ACF) — Australia
Theme URI: https://example.com/
Author: Your Team
Description: Fantasy casino UI: left sidebar, topbar search+auth, hero banner, category icons, ranked top slider, new slider, sports slider. All URLs from ACF Options. AU locale.
Version: 1.0.0
Text Domain: ca13-magius-au
Requires at least: 6.0
Requires PHP: 8.0
License: GPLv2 or later
*/

:root{
  --bg0:#1a0607;
  --bg1:#110508;

  --panel:#2a0d10;
  --panel2:#240b0e;
  --card:#2f0f13;

  --line: rgba(255,255,255,.10);

  --text:#fff2f2;
  --muted: rgba(255,242,242,.72);

  --gold:#f6c96a;
  --gold2:#ffd98e;
  --crimson:#d62b42;
  --violet:#6f3cff;

  --radius: 16px;
  --radius2: 22px;

  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --shadow2: 0 12px 28px rgba(246,201,106,.12);

  --wrap: 1280px;
  --sidebar: 250px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  --display: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 70% 10%, rgba(246,201,106,.12), transparent 60%),
    radial-gradient(900px 520px at 20% 20%, rgba(214,43,66,.10), transparent 56%),
    radial-gradient(900px 520px at 55% 90%, rgba(111,60,255,.06), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible{
  outline: 3px solid rgba(246,201,106,.80);
  outline-offset: 2px;
  border-radius: 12px;
}
.wrap{
  max-width: var(--wrap);
  margin:0 auto;
  padding: 0 16px;
}
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;
}
.flag{ display:block; border-radius: 2px; box-shadow: 0 4px 10px rgba(0,0,0,.35); }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing:.2px;
  border: 1px solid transparent;
  background: transparent;
  cursor:pointer;
  transition: transform .12s ease, filter .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active{ transform: translateY(1px) scale(.99); }

.btn--ghost{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,242,242,.92);
}
.btn--ghost:hover{ background: rgba(255,255,255,.08); border-color: rgba(246,201,106,.22); }

.btn--gold{
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color:#2a0d10;
  box-shadow: var(--shadow2);
}
.btn--gold:hover{ filter: brightness(1.05); }

.link{
  color: rgba(255,242,242,.92);
  text-decoration: underline;
  text-decoration-color: rgba(246,201,106,.42);
  text-underline-offset: 3px;
}
.link:hover{ text-decoration-color: rgba(246,201,106,.90); }

/* Topbar */
.topbar{
  position: sticky;
  top:0;
  z-index: 60;
  backdrop-filter: blur(10px);
  background: rgba(17,5,8,.82);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.trow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 170px;
}
.brand__logo{ height: 34px; width:auto; }
.brand__text{
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.6px;
  text-transform: uppercase;
}

.search{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  width: min(560px, 100%);
}
.search__icon{ opacity:.78; }
.search input{
  border:0; outline:none;
  background: transparent;
  color: rgba(255,242,242,.92);
  font-weight: 850;
  width: 100%;
}
.search input::placeholder{ color: rgba(255,242,242,.55); }

.tmid{
  display:flex;
  align-items:center;
  gap: 12px;
  flex: 1 1 auto;
  justify-content:center;
}
.tright{
  display:flex;
  align-items:center;
  gap: 10px;
  justify-content:flex-end;
  min-width: 320px;
}
.locale{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 950;
  color: rgba(255,242,242,.92);
  font-size: 13px;
}
@media (max-width: 980px){
  .tmid{ display:none; }
  .tright{ min-width: 0; }
}

/* Shell layout */
.shell{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 16px 26px;
  display:grid;
  grid-template-columns: var(--sidebar) 1fr;
  gap: 16px;
  align-items:start;
}
@media (max-width: 980px){
  .shell{ grid-template-columns: 1fr; }
}
.sidebar{
  position: sticky;
  top: 76px;
}
@media (max-width: 980px){
  .sidebar{ position: static; top:auto; }
}
.sidebar__box{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.smenu{ padding: 12px; }
.smenu__list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 10px; }
.smenu__a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-weight: 900;
  color: rgba(255,242,242,.90);
}
.smenu__a:hover{ background: rgba(246,201,106,.08); border-color: rgba(246,201,106,.20); }
.smenu__icon svg{ width:16px; height:16px; fill: currentColor; opacity:.92; display:block; }

.content{ min-width: 0; }

/* Hero */
.hero{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  min-height: 220px;
}
.hbg{
  position:absolute; inset:0;
  background-size: cover;
  background-position:center;
  opacity:.92;
  filter: saturate(1.1) contrast(1.05);
}
.hoverlay{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 30% 30%, rgba(246,201,106,.16), transparent 60%),
    radial-gradient(900px 520px at 85% 20%, rgba(214,43,66,.14), transparent 58%),
    linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.12));
}
.hinner{
  position:relative;
  padding: 18px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-height: 220px;
}
@media (min-width: 980px){
  .hinner{ grid-template-columns: 1.15fr .85fr; padding: 22px; align-items:center; min-height: 250px; }
}
.hkicker{
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(246,201,106,.22);
  font-weight: 950;
  font-size: 12px;
}
.htitle{
  margin: 10px 0 10px;
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.2px;
  font-size: clamp(22px, 3.0vw, 40px);
  line-height: 1.05;
}
.hsub{
  margin:0 0 14px;
  color: rgba(255,242,242,.78);
  font-weight: 850;
  line-height: 1.55;
  max-width: 720px;
}
.hactions{ display:flex; flex-wrap:wrap; gap: 10px; }

/* Category icons row (scroll) */
.cstrip{
  margin-top: 12px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cview{
  overflow:auto;
  scroll-snap-type: x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling: touch;
}
.cview::-webkit-scrollbar{ display:none; }
.ctrack{
  display:flex;
  gap: 12px;
  padding: 12px;
}
.cat{
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 108px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 10px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  align-items:center;
  text-align:center;
}
.caticon{
  width: 54px; height:54px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.caticon img{ width:100%; height:100%; object-fit: cover; }
.caticon svg{ width:22px; height:22px; fill: rgba(255,242,242,.92); opacity:.95; }
.catlabel{ font-weight: 950; font-size: 12px; color: rgba(255,242,242,.92); }

/* Section head */
.section{ padding-top: 14px; }
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0 10px;
}
.section-head__title{
  margin:0;
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.25px;
  text-transform: uppercase;
  font-size: 14px;
}
.section-head__more{
  color: rgba(255,242,242,.72);
  font-weight: 900;
  font-size: 13px;
  border-bottom: 1px solid rgba(246,201,106,.25);
}
.section-head__more:hover{ color:#fff; border-bottom-color: rgba(246,201,106,.65); }

/* Row slider */
.slider{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.sview{
  overflow:auto;
  scroll-snap-type: x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling: touch;
}
.sview::-webkit-scrollbar{ display:none; }
.strack{
  display:flex;
  gap: 12px;
  padding: 12px;
}
.card{
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 190px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.30);
  position:relative;
}
@media (min-width: 980px){ .card{ width: 210px; } }
.cimg{ height: 140px; background: rgba(0,0,0,.25); }
.cimg img{ width:100%; height:100%; object-fit: cover; }
.cbody{ padding: 10px 12px 12px; display:flex; flex-direction:column; gap: 6px; }
.ctitle{ margin:0; font-weight: 1000; font-size: 13px; line-height: 1.25; }
.csub{ margin:0; color: rgba(255,242,242,.66); font-weight: 850; font-size: 11px; }

.rank{
  position:absolute;
  left: 10px;
  bottom: 10px;
  width: 30px; height:30px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(214,43,66,.85);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 1000;
  box-shadow: 0 12px 24px rgba(0,0,0,.35);
}

.sctrl{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  padding: 0 12px 12px;
}
.sbtn{
  width: 44px; height:44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,242,242,.92);
  font-size: 20px;
  cursor:pointer;
}
.sbtn:hover{ background: rgba(246,201,106,.10); border-color: rgba(246,201,106,.18); }

/* SEO + Footer */
.seo{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  padding: 16px;
}
@media (min-width: 980px){ .seo{ padding: 22px; } }
.seo__title{
  margin:0 0 10px;
  font-family: var(--display);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing:.25px;
}
.prose{
  max-width: 980px;
  color: rgba(255,242,242,.86);
}
.prose p{ margin:0 0 12px; line-height:1.7; color: rgba(255,242,242,.80); }
.prose a{ color:#fff; text-decoration: underline; text-decoration-color: rgba(246,201,106,.42); text-underline-offset: 3px; }
.prose a:hover{ text-decoration-color: rgba(246,201,106,.86); }

.site-footer{
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  padding: 22px 0 30px;
}
.footer-note{
  color: rgba(255,242,242,.62);
  font-size: 12px;
  line-height: 1.6;
}
.footer-note__copy{ color: rgba(255,242,242,.52); font-weight: 850; margin-top: 6px; }

a {
    color: #f7ca6c;
}