/* TRUEMATE AUS MateClub V4.1 | Standalone Cloudflare Pages | Auto-loop */

/* STANDALONE CLOUDFLARE PAGES + INFINITE AUTO LOOP */
html{width:100%;min-height:100%;scroll-behavior:smooth;overflow-x:hidden;background:#031008}
body{width:100%;min-height:100vh;margin:0;padding:0;overflow-x:hidden;background:#031008}
html:not(.tm4-js) #tm4Loader{display:none!important}
#tm4Page .tm4-game-rail.tm4-loop-rail{overscroll-behavior-x:contain}
#tm4Page .tm4-game-rail.tm4-loop-rail .tm4-game-card{flex-shrink:0}
#tm4Page .tm4-game-rail .tm4-game-card a:focus-visible,
#tm4Page .tm4-arrows button:focus-visible,
#tm4Page .tm4-chip:focus-visible{outline:2px solid #f5d582;outline-offset:3px}

/* PAGE ROOT */

#tm4Page{
  --tm4-bg:#031008;
  --tm4-dark:#020906;
  --tm4-panel:#0b291b;
  --tm4-green:#0d2d1d;
  --tm4-gold:#e8c76d;
  --tm4-yellow:#f5cf63;
  --tm4-cream:#fff8dc;
  --tm4-muted:#a3b5a6;
  --tm4-border:rgba(216,184,88,.36);

  position:relative!important;
  z-index:10!important;
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  min-height:100vh!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  background:var(--tm4-bg)!important;
  color:var(--tm4-cream)!important;
  font-family:Arial,Helvetica,sans-serif!important;
  -webkit-font-smoothing:antialiased;
  opacity:1;
  visibility:visible;
}

html.tm4-ready #tm4Page{
  opacity:1;
  visibility:visible;
}

#tm4Page,
#tm4Page *{
  box-sizing:border-box;
}

#tm4Page a{
  color:inherit;
  text-decoration:none;
}

#tm4Page button,
#tm4Page input{
  font:inherit;
}

#tm4Page button{
  cursor:pointer;
}

#tm4Page img{
  display:block;
  max-width:100%;
}

#tm4Page .tm4-wrap{
  width:min(1190px,calc(100% - 36px));
  margin:0 auto;
}

/* LOADER */

#tm4Loader,
#tm4Loader *{
  box-sizing:border-box;
}

#tm4Loader{
  position:fixed!important;
  inset:0!important;
  z-index:2147483647!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100vw!important;
  height:100dvh!important;
  min-height:100vh;
  margin:0!important;
  padding:35px 20px!important;
  overflow:hidden!important;
  background:
    radial-gradient(
      circle at 50% 40%,
      #143b28 0%,
      #04160e 58%,
      #010805 100%
    )!important;
  color:#fff8dc!important;
  font-family:Arial,Helvetica,sans-serif!important;
  text-align:center;
  opacity:1;
  visibility:visible;
  transition:opacity .4s ease,visibility .4s ease;
}

#tm4Loader.tm4-loader-out{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

#tm4Loader .tm4-loader-art{
  position:absolute;
  z-index:0;
  inset:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-content:center;
  gap:30px;
  width:min(950px,115vw);
  height:100%;
  margin:0 auto;
  padding:50px;
  opacity:.13;
  filter:blur(2px);
  transform:rotate(-8deg);
  pointer-events:none;
}

#tm4Loader .tm4-loader-art img{
  width:100%;
  max-height:200px;
  aspect-ratio:1.5;
  object-fit:cover;
  border:3px solid #e8c76d;
  border-radius:20px;
  box-shadow:0 20px 35px rgba(0,0,0,.4);
  animation:tm4Float 4s ease-in-out infinite;
}

#tm4Loader .tm4-loader-art img:nth-child(even){
  animation-delay:-2s;
}

@keyframes tm4Float{
  0%,100%{translate:0 0}
  50%{translate:0 -12px}
}

#tm4Loader .tm4-loader-content{
  position:relative;
  z-index:2;
  width:min(450px,100%);
}

#tm4Loader .tm4-loader-emblem{
  width:65px;
  height:65px;
  display:grid;
  place-items:center;
  margin:0 auto 22px;
  border:1px solid #d8b858;
  border-radius:50%;
  background:linear-gradient(145deg,#17432d,#04150d);
  box-shadow:
    0 0 30px rgba(216,184,88,.12),
    inset 0 1px rgba(255,255,255,.1);
  color:#f5d582;
  font-size:43px;
}

#tm4Loader .tm4-loader-eyebrow{
  color:#e3c774;
  font-size:10px;
  font-weight:900;
  letter-spacing:2px;
}

#tm4Loader h2{
  margin:17px 0 12px;
  color:#fff8dc;
  font-family:Arial,Helvetica,sans-serif;
  font-size:clamp(37px,8vw,61px);
  font-weight:900;
  line-height:1.02;
  letter-spacing:-2px;
}

#tm4Loader h2 em{
  display:block;
  color:#edcf77;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(40px,8vw,63px);
  font-style:italic;
  font-weight:600;
  line-height:1.06;
}

#tm4Loader p{
  margin:0;
  color:#b0c2ad;
  font-size:12px;
  letter-spacing:.5px;
}

#tm4Loader .tm4-progress-track{
  height:10px;
  overflow:hidden;
  margin-top:27px;
  padding:2px;
  border:1px solid #5c5635;
  border-radius:999px;
  background:#173e2a;
}

#tm4Loader #tm4LoadBar{
  width:0;
  height:100%;
  border-radius:999px;
  background:linear-gradient(
    90deg,#9d772e,#f6d981,#c29842
  );
  box-shadow:0 0 17px rgba(245,207,99,.25);
  transition:width .16s ease;
}

#tm4Loader .tm4-progress-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
  color:#aebba4;
  font-size:10px;
}

#tm4Loader .tm4-progress-meta strong{
  color:#f5cf63;
}

/* HEADER */

#tm4Page .tm4-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(2,11,7,.97);
  border-bottom:1px solid #7a682c;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

#tm4Page .tm4-header-inner{
  min-height:66px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

#tm4Page .tm4-logo{
  display:flex;
  align-items:center;
  gap:10px;
  color:#f2d68a;
  font-family:Georgia,"Times New Roman",serif;
  font-size:25px;
  white-space:nowrap;
}

#tm4Page .tm4-logo-mark{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid #ccac58;
  border-radius:50%;
  font-size:24px;
}

#tm4Page .tm4-header-actions{
  display:flex;
  gap:8px;
}

/* BUTTONS */

#tm4Page .tm4-btn{
  min-height:41px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  border:1px solid #d4b25c;
  border-radius:8px;
  font-size:11px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  transition:transform .18s,box-shadow .18s;
}

#tm4Page .tm4-btn:hover{
  transform:translateY(-2px);
}

#tm4Page .tm4-outline{
  background:#031008;
  color:#f4d888;
}

#tm4Page .tm4-gold{
  background:linear-gradient(
    105deg,#b28a3b,#f6dda0,#b58a36
  );
  color:#122115;
  border-color:#f2d78b;
  box-shadow:0 6px 22px rgba(0,0,0,.27);
}

/* HERO */

#tm4Page .tm4-hero{
  background:
    radial-gradient(
      ellipse at 75% 35%,
      #1b4930 0%,
      transparent 55%
    ),
    linear-gradient(115deg,#031008,#081e14);
  border-bottom:1px solid #4d4a2d;
}

#tm4Page .tm4-hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:38px;
  padding-top:46px;
  padding-bottom:46px;
}

#tm4Page .tm4-eyebrow{
  color:#dabb67;
  font-size:10px;
  font-weight:900;
  letter-spacing:2px;
}

#tm4Page .tm4-hero h1{
  margin:16px 0;
  color:#fff8dc;
  font-family:Arial,Helvetica,sans-serif;
  font-size:clamp(35px,4.7vw,63px);
  font-weight:900;
  line-height:1.07;
  letter-spacing:-1.9px;
}

#tm4Page .tm4-hero h1 em{
  display:block;
  color:#f4d88a;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(36px,4.7vw,62px);
  font-style:italic;
  font-weight:500;
  line-height:1.07;
  letter-spacing:-1.2px;
}

#tm4Page .tm4-hero-copy>p{
  max-width:425px;
  color:#b3c2b7;
  font-size:14px;
  line-height:1.7;
}

#tm4Page .tm4-tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:17px 0 22px;
}

#tm4Page .tm4-tags span{
  padding:8px 9px;
  border:1px solid #5b603d;
  border-radius:5px;
  color:#f0d99d;
  font-size:9px;
  font-weight:800;
}

#tm4Page .tm4-hero-cta{
  min-height:44px;
}

#tm4Page .tm4-fine{
  margin-top:15px;
  color:#90a395;
  font-size:10px;
}

/* HERO IMAGES */

#tm4Page .tm4-hero-art{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:11px;
  padding:12px;
}

#tm4Page .tm4-hero-art img{
  width:100%;
  aspect-ratio:1.34;
  object-fit:cover;
  border:2px solid #ba9950;
  border-radius:13px;
  box-shadow:0 12px 28px rgba(0,0,0,.5);
}

#tm4Page .tm4-hero-art img:nth-child(1){
  transform:rotate(-3deg);
}

#tm4Page .tm4-hero-art img:nth-child(2){
  transform:translateY(-10px) rotate(3deg);
}

#tm4Page .tm4-hero-art img:nth-child(3){
  transform:translateY(8px) rotate(2deg);
}

#tm4Page .tm4-hero-art img:nth-child(4){
  transform:rotate(-2deg);
}

/* MAIN GAME AREA */

#tm4Page .tm4-games-area{
  padding:28px 0 48px;
  scroll-margin-top:82px;
}

#tm4Page .tm4-kicker{
  color:#d9b858;
  font-size:10px;
  font-weight:900;
  letter-spacing:2px;
}

#tm4Page .tm4-games-area h2{
  margin:8px 0;
  color:#f5df9d;
  font-family:Georgia,"Times New Roman",serif;
  font-size:27px;
  font-weight:700;
}

#tm4Page .tm4-subtitle{
  color:#9eafa2;
  font-size:12px;
  line-height:1.5;
}

/* SEARCH */

#tm4Page .tm4-search-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:20px 0 5px;
}

#tm4Page .tm4-search{
  flex:1;
  min-width:0;
  height:45px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 13px;
  border:1px solid #4b603f;
  border-radius:9px;
  background:#0b281b;
  color:#a7b6a4;
}

#tm4Page .tm4-search:focus-within{
  border-color:#d8b858;
}

#tm4Page .tm4-search svg{
  width:18px;
  height:18px;
  flex:0 0 18px;
}

#tm4Page .tm4-search input{
  width:100%;
  min-width:0;
  height:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#fff8dc;
  font-size:13px;
}

#tm4Page .tm4-search input::placeholder{
  color:#a5b4a1;
}

/* CATEGORY CHIPS */

#tm4Page .tm4-chips{
  display:flex;
  gap:7px;
  padding:12px 0 4px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  touch-action:pan-x;
}

#tm4Page .tm4-chips::-webkit-scrollbar{
  display:none;
}

#tm4Page .tm4-chip{
  flex-shrink:0;
  padding:10px 12px;
  border:1px solid #4f603d;
  border-radius:7px;
  background:#092218;
  color:#d9ca96;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}

#tm4Page .tm4-chip.active{
  background:#d8b858;
  color:#07170e;
  border-color:#d8b858;
}

/* GAME SECTIONS */

#tm4Page .tm4-game-section{
  padding-top:23px;
  scroll-margin-top:86px;
}

#tm4Page .tm4-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

#tm4Page .tm4-section-head h3{
  margin:0;
  color:#f4d889;
  font-size:18px;
  font-weight:900;
}

#tm4Page .tm4-section-head p{
  margin:4px 0 0;
  color:#9bae9b;
  font-size:10px;
}

#tm4Page .tm4-arrows{
  display:flex;
  gap:6px;
}

#tm4Page .tm4-arrows button{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #7c6a37;
  border-radius:50%;
  background:#102d20;
  color:#f4d581;
  font-size:20px;
}

#tm4Page .tm4-arrows button:disabled{
  opacity:.32;
  cursor:default;
}

/* CAROUSEL */

#tm4Page .tm4-game-rail{
  position:relative;
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - 55px)/6);
  gap:11px;
  width:100%;
  padding:2px 1px 10px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x proximity;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y;
}

#tm4Page .tm4-game-rail::-webkit-scrollbar{
  display:none;
}

/* GAME CARDS */

#tm4Page .tm4-game-card{
  min-width:0;
  overflow:hidden;
  border:1px solid #46603c;
  border-radius:11px;
  background:#0c281b;
  scroll-snap-align:start;
  transition:transform .2s,border-color .2s;
}

#tm4Page .tm4-game-card:hover{
  transform:translateY(-3px);
  border-color:#d8b858;
}

#tm4Page .tm4-game-link{
  display:block;
}

#tm4Page .tm4-game-image{
  position:relative;
  width:100%;
  aspect-ratio:1.38;
  overflow:hidden;
  background:#193522;
}

#tm4Page .tm4-game-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s;
}

#tm4Page .tm4-game-card:hover img{
  transform:scale(1.035);
}

#tm4Page .tm4-image-error{
  display:grid;
  place-items:center;
  padding:10px;
  text-align:center;
}

#tm4Page .tm4-image-error span{
  color:#d8c58b;
  font-size:12px;
  font-weight:800;
}

#tm4Page .tm4-game-info{
  padding:9px;
}

#tm4Page .tm4-game-info strong{
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:#fff8dc;
  font-size:11px;
}

#tm4Page .tm4-game-info small{
  display:block;
  margin-top:5px;
  color:#c2a96a;
  font-size:9px;
}

#tm4Page .tm4-game-action{
  display:block;
  margin-top:9px;
  padding:9px 4px;
  border:1px solid #7b6b37;
  border-radius:6px;
  color:#f5d98b;
  background:#153d29;
  font-size:10px;
  font-weight:900;
  text-align:center;
}

#tm4Page .tm4-empty{
  padding:30px 10px;
  color:#c6bd9a;
  font-size:13px;
  text-align:center;
}

/* FOOTER */

#tm4Page .tm4-footer{
  padding:25px 14px;
  border-top:1px solid #51472d;
  background:#020906;
  text-align:center;
}

#tm4Page .tm4-footer strong{
  color:#f0d582;
  font-family:Georgia,"Times New Roman",serif;
  font-size:20px;
}

#tm4Page .tm4-footer p{
  margin:8px 0 0;
  color:#a2b09f;
  font-size:10px;
  line-height:1.7;
}

/* TABLET */

@media(max-width:1000px){
  #tm4Page .tm4-hero-grid{
    grid-template-columns:1fr;
    gap:15px;
    padding-top:38px;
    padding-bottom:36px;
    text-align:center;
  }

  #tm4Page .tm4-hero-copy>p{
    margin-left:auto;
    margin-right:auto;
  }

  #tm4Page .tm4-tags{
    justify-content:center;
  }

  #tm4Page .tm4-hero-art{
    width:min(600px,100%);
    margin:0 auto;
  }

  #tm4Page .tm4-game-rail{
    grid-auto-columns:calc((100% - 33px)/4);
  }
}

/* MOBILE */

@media(max-width:650px){
  #tm4Page .tm4-wrap{
    width:calc(100% - 24px);
  }

  #tm4Page .tm4-header-inner{
    min-height:56px;
  }

  #tm4Page .tm4-logo{
    gap:6px;
    font-size:17px;
  }

  #tm4Page .tm4-logo-mark{
    width:28px;
    height:28px;
    font-size:19px;
  }

  #tm4Page .tm4-header-actions{
    gap:5px;
  }

  #tm4Page .tm4-header-actions .tm4-btn{
    min-height:33px;
    padding:0 8px;
    font-size:9px;
  }

  #tm4Page .tm4-hero-grid{
    padding-top:26px;
    padding-bottom:27px;
    gap:12px;
  }

  #tm4Page .tm4-eyebrow{
    font-size:9px;
    letter-spacing:1.4px;
  }

  #tm4Page .tm4-hero h1{
    font-size:35px;
    letter-spacing:-1px;
  }

  #tm4Page .tm4-hero h1 em{
    font-size:37px;
    letter-spacing:-1px;
  }

  #tm4Page .tm4-hero-copy>p{
    font-size:12px;
  }

  #tm4Page .tm4-tags{
    gap:6px;
    margin:15px 0;
  }

  #tm4Page .tm4-tags span{
    padding:7px 8px;
    font-size:9px;
  }

  #tm4Page .tm4-hero-art{
    padding-top:23px;
    gap:9px;
  }

  #tm4Page .tm4-games-area{
    padding-top:26px;
  }

  #tm4Page .tm4-games-area h2{
    font-size:24px;
  }

  #tm4Page .tm4-full-link{
    display:none;
  }

  #tm4Page .tm4-game-rail{
    grid-auto-columns:46%;
    gap:10px;
    padding-right:10px;
  }

  #tm4Page .tm4-arrows{
    display:none;
  }

  #tm4Page .tm4-section-head h3{
    font-size:16px;
  }

  #tm4Page .tm4-section-head p{
    font-size:10px;
  }

  #tm4Loader .tm4-loader-art{
    width:125%;
    left:-12.5%;
    padding:30px;
  }

  #tm4Loader .tm4-loader-art img{
    max-height:135px;
  }

  #tm4Loader .tm4-loader-emblem{
    width:57px;
    height:57px;
    font-size:36px;
  }
}

/* VERY SMALL MOBILE */

@media(max-width:360px){
  #tm4Page .tm4-logo{
    font-size:15px;
  }

  #tm4Page .tm4-hero h1{
    font-size:31px;
  }

  #tm4Page .tm4-hero h1 em{
    font-size:33px;
  }

  #tm4Page .tm4-game-rail{
    grid-auto-columns:48%;
  }
}

/* ACCESSIBILITY */

@media(prefers-reduced-motion:reduce){
  #tm4Page *,
  #tm4Loader *,
  #tm4Page *::before,
  #tm4Page *::after{
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}