/* The original X-Poker layout, with responsive sizing and localized text. */
:root {
  --bs-body-bg: #254a86;
  --bs-body-color: #fff;
  --bs-body-font-family: Arial, Helvetica, "Microsoft JhengHei", "Yu Gothic", sans-serif;
  --link-blue: #63b8e4;
  --active-blue: #ceeaff;
}
* { box-sizing: border-box; }
body { margin: 0; background: #335d9f url("../images/original/background.jpg") repeat-x center top; background-size: auto max(1080px, 100vh); background-attachment: fixed; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--active-blue); }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
button { font: inherit; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 10px 18px; color: #142c4e; background: #fff; transform: translateY(-160%); z-index: 2000; }
.skip-link:focus { transform: none; }
.site-shell { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.site-header { position: relative; z-index: 20; }
.site-header .navbar { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 20px; align-items: start; padding: 29px 26px 0; min-height: 90px; }
.navbar-brand { padding: 0; margin: 0; justify-self: start; }
.navbar-brand img { width: 236px; height: auto; }
.navbar-nav { gap: 30px; justify-content: center; align-items: start; padding-top: 9px; }
.navbar-nav .nav-link { font-size: 17px; color: var(--link-blue); text-transform: uppercase; padding: 0 0 4px; line-height: 1.5; border-bottom: 1px solid transparent; text-align: center; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--active-blue); }
.navbar-nav .nav-link.active { border-bottom-color: var(--active-blue); }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 22px; padding-top: 6px; }
.certification img { width: 84px; height: 41px; object-fit: contain; }
.desktop-certification { display: block; }
.mobile-certification { display: none; }
.language-button { border: 0; color: var(--active-blue); background: #152a4259; border-radius: 4px; display: flex; align-items: center; gap: 7px; padding: 7px 8px; font-size: 12px; }
.language-button .icon { width: 17px; height: 17px; }
.dropdown-toggle:after { margin-left: 1px; }
.dropdown-menu { background: #172940; border: 1px solid #6498c5; border-radius: 5px; min-width: 190px; padding: 6px; box-shadow: 0 8px 28px #0006; max-height: min(65vh,440px); overflow-y: auto; }
.dropdown-item { color: #d0e9ff; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; padding: 8px 12px; border-radius: 3px; }
.dropdown-item span { font-size: 10px; color: #a0b9d2; }
.dropdown-item:hover, .dropdown-item:focus { background: #2a4c73; color: #fff; }
.dropdown-item.active, .dropdown-item:active { background: #3165a4; color: #fff; }
.site-main { flex: 1; display: flex; flex-direction: column; outline: none; }
.page-panel { position: relative; flex: 1; }
.home-panel { display: flex; flex-direction: column; justify-content: flex-end; min-height: 530px; }
#home-carousel { position: fixed; inset: 0; z-index: 0; }
#home-carousel .carousel-inner, #home-carousel .carousel-item, #home-carousel picture { width: 100%; height: 100%; }
#home-carousel picture { display: block; }
#home-carousel .carousel-item img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.carousel-control-prev, .carousel-control-next { top: 42%; bottom: auto; width: 70px; height: 100px; opacity: .65; }
.carousel-control-prev { left: 7.5%; }
.carousel-control-next { right: 7.5%; }
.carousel-control-prev-icon, .carousel-control-next-icon { background-image: none !important; filter: none !important; width: 36px; height: 36px; border-top: 3px solid #cfe0f3; border-left: 3px solid #cfe0f3; }
.carousel-control-prev-icon { transform: rotate(-45deg); }
.carousel-control-next-icon { transform: rotate(135deg); }
.home-downloads { position: relative; z-index: 2; padding: 0 24px 10px; }
.download-platforms { gap: 8px; }
.platform-button { display: block; width: 190px; height: 64px; border-radius: 10px; transition: filter .15s; }
.platform-button:hover { filter: brightness(1.16); }
.platform-badge { display: flex; width: 100%; height: 100%; background: #000; border: 1px solid #aab4bc; border-radius: 10px; align-items: center; justify-content: flex-start; gap: 9px; padding: 8px 11px; color: #fff; }
.platform-badge .platform-icon { display: block; width: 38px; height: 42px; object-fit: contain; flex-shrink: 0; }
.platform-badge > span { min-width: 0; }
.platform-badge strong { display: block; font-size: 24px; font-weight: 500; line-height: 1.05; }
.platform-badge small { display: block; font-size: 11px; line-height: 1.2; margin-bottom: 3px; }
.slideshow-tools { position: relative; margin: 13px auto 0; width: max-content; height: 20px; }
.slideshow-tools .carousel-indicators { position: relative; margin: 0; height: 20px; gap: 12px; align-items: center; }
.carousel-indicators [data-bs-target] { background: #fff; opacity: .85; width: 10px; height: 10px; border: 0; border-radius: 50%; margin: 0; }
.carousel-indicators .active { background: #1c2427; opacity: 1; box-shadow: 0 0 0 1px #b6b6ae60; }
.carousel-pause { position: absolute; top: -1px; left: calc(100% + 15px); width: 26px; height: 24px; padding: 0; border: 0; background: #142c4e38; border-radius: 3px; color: #e6effc; font-size: 13px; line-height: 24px; }
.about-panel { display: flex; justify-content: center; align-items: flex-start; }
.about-scene { width: clamp(1000px, 70%, 1344px); max-width: 100%; position: relative; margin: -25px auto 0; }
.about-desktop-image { width: 100%; height: auto; display: block; }
.about-mobile-image { display: none; }
.about-text { position: absolute; left: 42.8%; top: 27.2%; width: 16.25%; height: 47%; color: #fff; overflow: auto; scrollbar-width: thin; scrollbar-color: #6eb4e0 transparent; }
.about-text h1 { text-transform: uppercase; font-size: 1.9em; font-weight: 600; line-height: 1.15; text-align: center; margin: 0 0 1.5em; overflow-wrap: anywhere; }
.about-text p { font-size: 1em; line-height: 1.5; margin-bottom: 1em; }
.contact-panel { display: flex; justify-content: center; align-items: flex-start; }
.contact-scene { width: min(550px, calc((100svh - 140px) * .7928)); max-width: 92%; position: relative; margin-top: -25px; }
.contact-scene > img { display: block; width: 100%; height: auto; }
.contact-hotspot { position: absolute; left: 14%; width: 72%; height: 8.9%; border-radius: 4px; transition: box-shadow .15s; }
.email-hotspot { top: 58.1%; }
.facebook-hotspot { top: 75.25%; }
.contact-hotspot:hover { box-shadow: 0 0 0 3px #a6dcff,0 0 25px #83cdff66; }
.site-footer { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; padding: 16px 20px 10px; gap: 15px; color: #d2d7e5; font-size: 10px; line-height: 1.6; text-align: center; }
.footer-info p { margin: 8px 0 0; }
.legal-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; column-gap: 3px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.container-xl { max-width: 1200px; padding-left: 24px; padding-right: 24px; }
.text-link { color: #ceeaff; display: inline-flex; align-items: center; padding: 10px 0; }
@media (min-width: 1600px) {
  .site-header .navbar { padding: 40px 35px 0; min-height: 101px; }
  .navbar-nav .nav-link { font-size: 22px; }
  .navbar-nav { gap: 40px; }
  .home-downloads { padding-bottom: 6vh; }
  .site-footer { padding-bottom: 30px; font-size: 12px; }
}
@media (max-width: 1199.98px) {
  .site-header .navbar { grid-template-columns: 190px 1fr auto; padding: 22px 22px 0; min-height: 80px; gap: 15px; }
  .navbar-brand img { width: 180px; }
  .navbar-nav { gap: 22px; padding-top: 7px; }
  .navbar-nav .nav-link { font-size: 14px; }
  .header-tools { gap: 10px; padding-top: 2px; }
  .certification img { width: 84px; height: auto; }
  .about-scene { width: 82%; margin-top: -5px; }
  .contact-scene { margin-top: -5px; width: 500px; }
}
@media (max-width: 1199.98px) {
  .about-scene { width: 700px; max-width: 90%; margin: 40px auto 15px; }
  .about-desktop-image { display: none; }
  .about-text { position: static; width: auto; height: auto; font-size: 15px !important; overflow: visible; padding: 0 20px; }
  .about-text h1 { font-size: 22px; text-align: left; margin: 0 0 25px; }
  .about-text p { line-height: 1.7; }
  .about-mobile-image { display: block; width: 90%; height: auto; max-width: 500px; margin: 10px auto 0; }
}
@media (max-width: 991.98px) {
  .site-header .navbar { grid-template-columns: 170px 1fr auto; padding: 20px 20px 0; }
  .navbar-brand img { width: 165px; }
  .navbar-nav { gap: 18px; }
  .navbar-nav .nav-link { font-size: 13px; }
  .desktop-certification { display: none; }
  .mobile-certification { display: block; }
  .about-scene { width: 700px; max-width: 90%; margin: 40px auto 15px; }
  .about-desktop-image { display: none; }
  .about-text { position: static; width: auto; height: auto; font-size: 15px !important; overflow: visible; padding: 0 20px; }
  .about-text h1 { font-size: 22px; text-align: left; margin: 0 0 25px; }
  .about-text p { line-height: 1.7; }
  .about-mobile-image { display: block; width: 90%; height: auto; max-width: 500px; margin: 10px auto 0; }
  .site-footer { font-size: 10px; padding-top: 20px; padding-bottom: 12px; }
  .contact-scene { width: 500px; }
}
@media (max-width: 767.98px) {
  .site-header .navbar { grid-template-columns: 1fr auto; row-gap: 14px; padding: 17px 18px 0; min-height: 103px; }
  .navbar-brand img { width: 137px; }
  .navbar-nav { grid-row: 2; grid-column: 1 / -1; gap: 25px; flex-wrap: wrap; padding-top: 0; }
  .navbar-nav .nav-link { font-size: 13px; }
  .header-tools { grid-row: 1; grid-column: 2; }
  .language-button { padding: 6px 8px; }
  .home-panel { min-height: 550px; }
  .home-downloads { padding-bottom: 45px; margin-top: max(360px, calc(59svh - 103px)); }
  .download-platforms { flex-direction: column; align-items: center; gap: 9px; }
  .platform-button { width: 165px; height: 55.6px; }
  .platform-badge { padding: 7px 9px; gap: 8px; }
  .platform-badge .platform-icon { width: 30px; height: 34px; }
  .platform-badge strong { font-size: 22px; }
  .platform-badge small { font-size: 10px; }
  .carousel-control-prev, .carousel-control-next { width: 40px; height: 70px; top: 36%; }
  .carousel-control-prev { left: 3%; }
  .carousel-control-next { right: 3%; }
  .carousel-control-prev-icon, .carousel-control-next-icon { width: 22px; height: 22px; border-width: 2px; }
  .about-scene { margin-top: 28px; max-width: 100%; }
  .about-text { padding: 0 27px; font-size: 13px !important; }
  .about-text h1 { font-size: 19px; margin-bottom: 21px; }
  .about-mobile-image { width: 100%; max-width: 450px; margin-top: 8px; }
  .contact-scene { max-width: 100%; width: 550px; margin-top: 30px; }
  .contact-panel { align-items: center; }
  .site-footer { padding-left: 10px; padding-right: 10px; gap: 12px; font-size: 9px; }
  .site-footer .certification img { width: 74px; }
  .footer-info { max-width: calc(100% - 86px); text-align: left; }
  .footer-info p { margin-top: 4px; }
  .legal-links { justify-content: flex-start; }
}
@media (max-width: 374.98px) {
  .navbar-nav { gap: 14px; }
  .navbar-nav .nav-link { font-size: 12px; }
  .about-text { padding-left: 21px; padding-right: 21px; }
  .site-footer { font-size: 8px; }
}
@media (max-height: 700px) and (min-width: 768px) {
  .home-panel { min-height: 430px; }
  .about-scene { width: min(70%, 900px); }
  .contact-scene { width: 430px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
