/* Native WordPress adapters only. Layout sizes and spacing remain in source.css. */
html { min-height: 100%; }
body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
button, [role="button"] { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, [role="button"]:focus-visible { outline: 2px solid #94701d; outline-offset: 2px; }
.amx-landing { display: flex; flex-direction: column; width: 100%; min-width: 0; }

/* Reproduce the old amp-img fill layout inside the original logo dimensions. */
.logo-container .logo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.amx-wordmark { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #fff3cb; font-family: 'gilroybold', Arial, sans-serif; font-size: 24px; line-height: 1.1; overflow-wrap: anywhere; }
.header-right .register-section a.login-button, .header-right .register-section a.register-button { color: #211703; }

/* AMP's responsive hero: full viewport width, no added panel or inset. */
.carousel-container { position: relative; display: block; width: 100%; max-width: none; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: hidden; }
.amx-slides { position: relative; width: 100%; aspect-ratio: 1920/613; overflow: hidden; }
.amx-hero-carousel .amx-slides { aspect-ratio: 1920/613; }
.amx-slide { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.amx-slide img { display: block; width: 100%; height: 100%; max-width: none; object-fit: fill; }
.carousel-container [data-amx-prev], .carousel-container [data-amx-next] { position: absolute; top: 50%; z-index: 1; transform: translateY(-50%); width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 2px; background: rgba(0,0,0,.5); color: #fff; font: 32px/44px Arial, sans-serif; text-align: center; }
.carousel-container [data-amx-prev] { left: 0; }
.carousel-container [data-amx-next] { right: 0; }

/* The source's second carousel is intrinsic 849 x 244, not a full-width card. */
.nine-gaming-promotions { max-width: 100%; }
.nine-gaming-promotions .amx-promo-carousel { display: inline-block; width: 849px; max-width: 100%; margin: 0; vertical-align: top; }
.amx-promo-carousel .amx-slides { aspect-ratio: 849/244; }

/* Native list replaces the 82px fixed-height AMP category carousel. */
.amx-category-carousel { position: relative; display: flow-root; width: 100%; min-width: 0; }
.main-menu-container { height: 82px; min-height: 82px; padding: 0; justify-content: safe center; }
.main-menu-container li { flex: 0 0 auto; }
.main-menu-container li img { width: 25px; height: 25px; }
.amx-category-carousel .main-menu-container { scrollbar-width: none; -ms-overflow-style: none; }
.amx-category-carousel .main-menu-container::-webkit-scrollbar { display: none; width: 0; height: 0; }
.amx-category-carousel > button { position: absolute; top: 0; z-index: 1; width: 20px; height: 82px; margin: 0; padding: 0; border: 0; border-radius: 0; background: #494949; color: #fff; font: 24px/82px Arial, sans-serif; text-align: center; }
.amx-category-previous { left: 0; }
.amx-category-next { right: 0; }

/* AMP intrinsic image boxes retain declared sizes, including the source's 200px cards. */
.game-list-container .amx-nine-gaming-logo { display: inline-block; width: 180px; height: 46px; max-width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; object-fit: contain; }
.game-list-container .nine-gaming-games img { width: 200px; height: auto; max-width: 100%; }
.home-progressive-jackpot .jackpot-play-section img { display: block; margin-left: auto; }
.amx-jackpot-value { display: inline-block; width: 300px; max-width: 100%; height: 33px; text-align: center; white-space: nowrap; }
#jackpot_value { color: #fff; }

/* Recolor UI icons only; source/provider and uploaded banner artwork stays intact. */
.main-menu-container img, .fixed-footer img, .nine-gaming-promotion-header img, .popular-game-title-container img, .site-menu img:not(.chevron-right) { filter: brightness(0) saturate(100%) invert(57%) sepia(30%) saturate(954%) hue-rotate(3deg) brightness(94%) contrast(90%); }

/* Keep the login glyph distinct from its inherited gold background and retain
   the source's square image box, even though the SVG viewBox is rectangular. */
.fixed-footer img.center { filter: none; aspect-ratio: 1 / 1; object-fit: contain; }
.fixed-footer .amx-login-label { position: relative; z-index: 1; }

/* Drawer positioning replaces AMP's overlay, without altering its source width. */
body.amx-overlay-open { overflow: hidden; }
.site-menu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 401; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
.site-menu summary { position: relative; }
.site-menu img { flex: 0 0 auto; }
.amx-backdrop { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.5); }

/* Native dialog retains the source header/body colors and proportions. */
.amx-apk-dialog { width: 95%; max-width: 95%; max-height: 95vh; margin: auto; padding: 0; border: 0; border-radius: 10px; overflow: auto; background: transparent; color: #333; }
.amx-apk-dialog:not([open]) { display: none; }
.amx-apk-dialog::backdrop { background: rgba(0,0,0,.5); }
.amx-apk-dialog .modal-content { width: 100%; margin: 0; }
.amx-apk-dialog .modal-header { min-height: 50px; }
.amx-apk-dialog .modal-body { text-align: left; }
.amx-apk-dialog .modal-body img { width: 20px; height: 20px; filter: contrast(0); }
.amx-apk-dialog .modal-body .h5 { font-size: 18px; color: inherit; text-transform: uppercase; }
.amx-apk-dialog .modal-body ol { list-style: decimal; padding-left: 5px; }
.amx-apk-dialog.amx-dialog-fallback { position: fixed; top: 50%; left: 50%; z-index: 501; transform: translate(-50%,-50%); margin: 0; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); }

/* Local brand images occupy the original footer slots without stretching. */
.footer-container .bank-list .amx-bank-logo { display: block; width: 60px; height: 30px; max-width: 60px; object-fit: contain; filter: none; }
.footer-container .social-media-list .amx-social-logo { display: block; width: 32px; height: 32px; object-fit: contain; filter: none; }
.amx-image-unavailable { display: none !important; }

/* The user's explicit copyright exception: centered, using source section spacing. */
.copyright, .copyright div, .copyright div:nth-child(2), .amx-copyright-text { text-align: center; }
.copyright a { color: inherit; }

/* WordPress content uses the existing article slot; no added box or typography layout. */
.entry-content { overflow-wrap: anywhere; }
.entry-content a { color: #715018; text-decoration: underline; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; }
.entry-content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.entry-content table { max-width: 100%; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; width: auto; height: auto; top: 8px; left: 8px; z-index: 100000; padding: 12px; background: #f4dfaa; color: #211703; }
.admin-bar .logo-container { top: var(--wp-admin--admin-bar--height,32px); }
.admin-bar .site-menu { top: var(--wp-admin--admin-bar--height,32px); height: calc(100dvh - var(--wp-admin--admin-bar--height,32px)); }
#main-content, #download-app { scroll-margin-top: 54px; }
.amx-post-list { padding: 20px 15px; }
.amx-post-list a { color: #715018; }
@media (min-width:768px) {
  .amx-wordmark { font-size: 38px; }
  #main-content, #download-app { scroll-margin-top: 70px; }
}
@media (max-width:600px) { body.admin-bar #wpadminbar { position: fixed; } }
@media (prefers-reduced-motion:reduce) {
  .fixed-footer .live-chat-icon { animation: none; }
  .site-menu img.chevron-right { transition: none; }
}
