/**
 * Adventure Bingo Landing Page Styles
 * Matches Flutter app: gradient #0081A7 → #00AFB9, Fuzzy Bubbles font
 */

:root {
  --ab-primary: #0081a7;
  --ab-tertiary: #00afb9;
}

html:has(body.ab-landing-page),
html:has(body.ab-bingo-sheet-page),
body.ab-landing-page,
body.ab-bingo-sheet-page {
  background: linear-gradient(135deg, var(--ab-primary) 0%, var(--ab-tertiary) 100%);
  min-height: 100vh;
}

.ab-landing {
  font-family: 'Fuzzy Bubbles', cursive;
  min-height: 100vh;
  background: transparent;
  color: #004D5C;
  padding: 2rem 1rem 3rem;
  box-sizing: border-box;
}

.ab-lang-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.ab-lang-flag {
  display: inline-block;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem;
  border-radius: 4px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.15s;
}

.ab-lang-flag:hover {
  opacity: 1;
  transform: scale(1.1);
}

.ab-lang-flag.is-active {
  opacity: 1;
}

.ab-hero {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.ab-header-banner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem 1rem 1.2rem;
  backdrop-filter: blur(3px);
}
.ab-top-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 0 auto 2.3rem;
}
.ab-top-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.ab-top-menu-link:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.ab-top-menu-link.is-active {
  background: #ffffff;
  color: #006b86;
}

.ab-breadcrumbs {
  max-width: 1100px;
  margin: -1.35rem auto 1.5rem;
  padding: 0 0.25rem;
  font-family: 'Fuzzy Bubbles', cursive;
  color: rgba(255, 255, 255, 0.92);
}

.ab-breadcrumbs-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.ab-breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ab-breadcrumbs-item + .ab-breadcrumbs-item::before {
  content: "/";
  color: rgba(255, 255, 255, 0.7);
}

.ab-breadcrumbs a,
.ab-breadcrumbs span {
  color: #ffffff;
  text-decoration: none;
}

.ab-breadcrumbs a:hover {
  text-decoration: underline;
}

.ab-title {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
  margin: 0 0 1rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.ab-description {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: #ffffff;
  margin: 0 0 2rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.ab-store-buttons-wrap {
  text-align: center;
  margin: 0 auto 3rem;
}

.ab-store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: center;
  align-items: center;
}

.ab-store-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ab-store-btn:hover,
.ab-store-btn:focus,
.ab-store-btn:active,
.ab-store-btn *,
.ab-store-btn:hover *,
.ab-store-btn:focus * {
  text-decoration: none !important;
}

.ab-store-btn:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

.ab-store-btn img {
  display: block;
  height: auto;
  max-height: 53px;
  width: auto;
  max-width: 180px;
}

.ab-store-btn-text {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.ab-adventures {
  max-width: 1100px;
  margin: 0 auto;
}

.ab-section-title {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #ffffff;
  text-align: center;
  margin: 0 0 2rem;
  letter-spacing: 0.05em;
}

.ab-adventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ab-adventure-card {
  background: rgba(232, 251, 251, 0.95);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 65, 92, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  font-family: 'Fuzzy Bubbles', cursive;
}

.ab-adventure-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 65, 92, 0.2);
}

.ab-adventure-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #B8EDEB;
}

.ab-adventure-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ab-adventure-content {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ab-adventure-title {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 700;
  font-size: 1.15rem;
  color: #004D5C;
  margin: 0 0 0.5rem;
  letter-spacing: 0.03em;
}

.ab-adventure-description {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 400;
  font-size: 0.9rem;
  color: #005F73;
  margin: 0;
  line-height: 1.45;
  letter-spacing: 0.02em;
  flex: 1;
}

/* Adventure card as link */
.ab-adventure-card-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.ab-adventure-card-link:hover,
.ab-adventure-card-link:focus,
.ab-adventure-card-link:active,
.ab-adventure-card-link *,
.ab-adventure-card-link:hover *,
.ab-adventure-card-link:focus * {
  text-decoration: none !important;
}

.ab-how-to-play {
  max-width: 1140px;
  margin: 0 auto;
}
.ab-how-to-play-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.ab-how-to-play-card {
  background: rgba(232, 251, 251, 0.95);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 65, 92, 0.15);
  display: flex;
  flex-direction: column;
}
.ab-how-to-play-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.ab-how-to-play-content {
  padding: 1rem 1rem 1.15rem;
}
.ab-how-to-play-title {
  margin: 0 0 0.45rem;
  color: #004D5C;
  font-family: 'Fuzzy Bubbles', cursive;
  font-size: 1.2rem;
  line-height: 1.35;
}
.ab-how-to-play-description {
  margin: 0;
  color: #005F73;
  font-family: 'Fuzzy Bubbles', cursive;
  line-height: 1.45;
}

/* Footer */
.ab-footer {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ab-footer-about,
.ab-footer-links {
  margin: 0 0 0.5rem;
}

.ab-footer a {
  color: #ffffff;
  text-decoration: none;
}

.ab-footer a:hover {
  text-decoration: underline;
}

.ab-footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.ab-footer-social a {
  font-size: 1.25rem;
}
.ab-blog-posts {
  max-width: 1100px;
  margin: 0 auto;
}
.ab-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.ab-blog-card {
  background: rgba(232, 251, 251, 0.95);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 12px rgba(0, 65, 92, 0.15);
}
.ab-blog-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}
.ab-blog-title a {
  color: #004d5c;
  text-decoration: none;
}
.ab-blog-title a:hover {
  text-decoration: underline;
}
.ab-blog-meta {
  margin: 0.45rem 0 0.5rem;
  color: #00748e;
  font-size: 0.9rem;
}
.ab-blog-excerpt {
  margin: 0;
  color: #005f73;
  line-height: 1.45;
}
.ab-blog-empty {
  text-align: center;
  color: #ffffff;
}
.ab-blog-pagination {
  margin-top: 1.25rem;
}
.ab-blog-pagination .page-numbers {
  display: flex;
  list-style: none;
  gap: 0.45rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.ab-blog-pagination .page-numbers a,
.ab-blog-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 0 0.55rem;
}
.ab-blog-pagination .page-numbers .current {
  background: #ffffff;
  color: #006b86;
}
.ab-blog-post-view {
  max-width: 100%;
  margin: 0;
}

/* Single post: hero + gradient article card */
.ab-blog-post-page .ab-blog-post-header {
  max-width: min(100vw, 880px);
  margin: 0 auto 1.35rem;
  padding: 1.25rem 1.35rem 1.35rem;
  box-sizing: border-box;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(0, 77, 92, 0.55) 0%, rgba(0, 129, 167, 0.45) 50%, rgba(0, 175, 185, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 40px rgba(0, 35, 50, 0.28);
  backdrop-filter: blur(8px);
}

.ab-blog-post-page .ab-blog-post-header .ab-bingo-back {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.ab-blog-post-header .ab-bingo-sheet-subtitle {
  margin-bottom: 0;
}

.ab-blog-post-detail-card {
  max-width: min(100vw, 880px);
  margin: 0 auto 2.75rem;
  padding: 1.6rem clamp(1rem, 3.5vw, 2rem) 2.1rem;
  box-sizing: border-box;
  border-radius: 26px;
  background: linear-gradient(
    155deg,
    #003844 0%,
    #004d5c 18%,
    #006884 42%,
    #0081a7 68%,
    #00afb9 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 24px 56px rgba(0, 30, 45, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.ab-blog-post-page .ab-blog-post-detail-card .ab-breadcrumbs {
  margin: 0 0 1.35rem;
  padding: 0 0.15rem;
  justify-content: flex-start;
}

.ab-blog-post-page .ab-blog-post-detail-card .ab-breadcrumbs-list {
  justify-content: flex-start;
}

.ab-blog-post-hero {
  margin-bottom: 1.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.ab-blog-back-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 700;
  color: #ffffff;
}
.ab-blog-back-link span {
  font-size: 1rem;
  line-height: 1;
}
.ab-blog-post-meta {
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Fuzzy Bubbles', cursive;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.ab-blog-post-lead {
  margin: 0;
  color: #ffffff;
  font-family: 'Fuzzy Bubbles', cursive;
  font-size: clamp(1.28rem, 2.8vw, 1.75rem);
  line-height: 1.38;
  font-weight: 700;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.18);
}

.ab-blog-post-content {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: clamp(1.35rem, 3vw, 2.1rem) clamp(1.1rem, 3vw, 2rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  color: #ffffff;
  line-height: 1.78;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}
.ab-blog-post-content h1,
.ab-blog-post-content h2,
.ab-blog-post-content h3,
.ab-blog-post-content h4,
.ab-blog-post-content h5,
.ab-blog-post-content h6 {
  font-family: 'Fuzzy Bubbles', cursive;
  color: #ffffff;
  margin: 1.35em 0 0.5em;
  line-height: 1.28;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
}
.ab-blog-post-content h2 {
  font-size: clamp(1.28rem, 2.1vw, 1.7rem);
}
.ab-blog-post-content h3 {
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
}
.ab-blog-post-content p {
  margin: 0 0 1.1rem;
}
.ab-blog-post-content p,
.ab-blog-post-content li {
  font-family: 'Fuzzy Bubbles', cursive;
  color: rgba(255, 255, 255, 0.98);
}
.ab-blog-post-content > p:first-of-type {
  font-size: 1.06rem;
  line-height: 1.72;
  color: #ffffff;
}
.ab-blog-post-content ul,
.ab-blog-post-content ol {
  margin: 0.35rem 0 1.15rem 1.25rem;
}
.ab-blog-post-content li + li {
  margin-top: 0.4rem;
}
.ab-blog-post-content a {
  color: #ffffff;
  text-underline-offset: 3px;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}
.ab-blog-post-content a:hover {
  text-decoration-color: #ffffff;
}

/* Enclosing [adventure_mobile] / [adventure_bingo_mobile]…[/] in post body → link to mobile landing */
a.ab-mobile-inline-link {
  text-decoration-thickness: 2px;
}

.ab-blog-post-content blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem 1rem 1.25rem;
  border-left: 4px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.12);
  border-radius: 0 14px 14px 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.96);
}
.ab-blog-post-content code,
.ab-blog-post-content pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.ab-blog-post-content :not(pre) > code {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0.12em 0.45em;
  border-radius: 6px;
  font-size: 0.88em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.ab-blog-post-content pre {
  overflow-x: auto;
  background: rgba(0, 18, 28, 0.72);
  color: #e8fbfb;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  line-height: 1.55;
}
.ab-blog-post-content pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.ab-blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 0.6rem auto 1rem;
  display: block;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}
.ab-blog-post-content figcaption {
  margin-top: -0.35rem;
  margin-bottom: 1.1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-family: 'Fuzzy Bubbles', cursive;
}

/* Single post: typography inside glass article (no universal * — keeps code blocks readable) */
.ab-blog-post-page .ab-blog-post-content,
.ab-blog-post-page .ab-blog-post-content p,
.ab-blog-post-page .ab-blog-post-content li,
.ab-blog-post-page .ab-blog-post-content span,
.ab-blog-post-page .ab-blog-post-content strong,
.ab-blog-post-page .ab-blog-post-content em,
.ab-blog-post-page .ab-blog-post-content h1,
.ab-blog-post-page .ab-blog-post-content h2,
.ab-blog-post-page .ab-blog-post-content h3,
.ab-blog-post-page .ab-blog-post-content h4,
.ab-blog-post-page .ab-blog-post-content h5,
.ab-blog-post-page .ab-blog-post-content h6,
.ab-blog-post-page .ab-blog-post-content blockquote,
.ab-blog-post-page .ab-blog-post-content figcaption,
.ab-blog-post-page .ab-blog-post-content th,
.ab-blog-post-page .ab-blog-post-content td {
  color: #ffffff;
}

.ab-blog-post-page .ab-blog-post-content a {
  color: #ffffff;
}

.ab-blog-post-page .ab-blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.ab-blog-post-page .ab-blog-post-content th,
.ab-blog-post-page .ab-blog-post-content td {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 0.65rem;
}
.ab-blog-post-page .ab-blog-post-content th {
  background: rgba(255, 255, 255, 0.12);
}

.ab-blog-post-nav {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}
.ab-blog-post-nav-link {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Fuzzy Bubbles', cursive;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ab-blog-post-nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}
.ab-related-posts {
  margin-top: 1.65rem;
  background: rgba(0, 0, 0, 0.14);
  border-radius: 18px;
  padding: 1.1rem 1.25rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.ab-related-posts-title {
  margin: 0 0 0.6rem;
  color: #ffffff;
  font-size: 1.1rem;
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.ab-related-posts-list {
  margin: 0;
  padding-left: 1.35rem;
}
.ab-related-posts-list li {
  margin: 0.35rem 0;
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Fuzzy Bubbles', cursive;
}
.ab-related-posts-list a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s ease;
}
.ab-related-posts-list a:hover {
  border-bottom-color: #ffffff;
}

.ab-blog-post-page .ab-footer {
  border-top-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 600px) {
  .ab-blog-post-detail-card {
    border-radius: 20px;
    padding: 1.2rem 0.85rem 1.65rem;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
  }

  .ab-blog-post-page .ab-blog-post-header {
    border-radius: 18px;
    padding: 1rem 0.85rem;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
  }

  .ab-blog-post-native-header {
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
  }

  .ab-blog-post-content {
    border-radius: 16px;
    padding: 1.15rem 1rem;
  }
}

/* -------------------------------------------------------------------------
   Native WordPress single posts (permalink URLs; theme renders template).
   Plugin shortcode posts already include .ab-blog-post-detail-card markup.
   ------------------------------------------------------------------------- */
body.ab-wp-native-single-post {
  font-family: 'Fuzzy Bubbles', cursive, system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.96) !important;
}

body.ab-wp-native-single-post #page,
body.ab-wp-native-single-post .site,
body.ab-wp-native-single-post #wrapper,
body.ab-wp-native-single-post .site-content,
body.ab-wp-native-single-post #content,
body.ab-wp-native-single-post .content-area,
body.ab-wp-native-single-post main,
body.ab-wp-native-single-post .nv-content-wrap,
body.ab-wp-native-single-post .nv-single-post-wrap,
body.ab-wp-native-single-post .ast-container,
body.ab-wp-native-single-post .site-main,
body.ab-wp-native-single-post .wp-site-blocks {
  background: transparent !important;
}

body.ab-wp-native-single-post .ab-blog-post-native-theme {
  margin-top: 0.25rem;
  margin-bottom: 2.5rem;
}

body.ab-wp-native-single-post .ab-blog-post-native-header {
  max-width: min(100vw, 880px);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.15rem;
}

body.ab-wp-native-single-post .ab-blog-post-native-hero {
  margin-bottom: 1.2rem;
}

/* Theme title/meta duplicate our plugin header + in-card date — hide common patterns */
body.ab-wp-native-single-post article > header.entry-header,
body.ab-wp-native-single-post article.post > header.entry-header,
body.ab-wp-native-single-post .nv-title-meta-wrap,
body.ab-wp-native-single-post .nv-page-title-wrap,
body.ab-wp-native-single-post .entry-header,
body.ab-wp-native-single-post .ast-single-post-header,
body.ab-wp-native-single-post .ast-single-header-meta,
body.ab-wp-native-single-post main > .wp-block-post-title,
body.ab-wp-native-single-post .wp-block-post-title:first-of-type {
  display: none !important;
}

body.ab-wp-native-single-post .entry-excerpt,
body.ab-wp-native-single-post .nv-post-excerpt,
body.ab-wp-native-single-post .blog-single-excerpt,
body.ab-wp-native-single-post .has-medium-font-size {
  color: rgba(255, 255, 255, 0.98) !important;
  font-family: 'Fuzzy Bubbles', cursive, system-ui, sans-serif !important;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.45;
  font-weight: 700;
}

body.ab-wp-native-single-post .post-navigation,
body.ab-wp-native-single-post .post-navigation a,
body.ab-wp-native-single-post .nav-previous a,
body.ab-wp-native-single-post .nav-next a {
  color: #ffffff !important;
}

body.ab-wp-native-single-post .post-navigation .nav-subtitle {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.ab-wp-native-single-post .comments-area,
body.ab-wp-native-single-post #comments,
body.ab-wp-native-single-post .comment-respond,
body.ab-wp-native-single-post .comment-form,
body.ab-wp-native-single-post .comment-form label,
body.ab-wp-native-single-post .comment-form .comment-notes,
body.ab-wp-native-single-post .comment-list .comment-meta,
body.ab-wp-native-single-post .comment-list .comment-content,
body.ab-wp-native-single-post .comment-list .comment-content p {
  color: rgba(255, 255, 255, 0.95) !important;
}

body.ab-wp-native-single-post .comment-form input[type="text"],
body.ab-wp-native-single-post .comment-form input[type="email"],
body.ab-wp-native-single-post .comment-form input[type="url"],
body.ab-wp-native-single-post .comment-form textarea {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #004d5c !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 10px;
}

body.ab-wp-native-single-post .comment-form .submit,
body.ab-wp-native-single-post .form-submit input[type="submit"] {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.ab-mobile-hero {
  max-width: 980px;
  margin: 0 auto 2.25rem;
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.ab-mobile-heading {
  margin: 0 0 0.8rem;
  font-family: 'Fuzzy Bubbles', cursive;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #ffffff;
  text-align: center;
}
.ab-mobile-text {
  margin: 0 0 0.7rem;
  color: rgba(255, 255, 255, 0.96);
  text-align: center;
  font-family: 'Fuzzy Bubbles', cursive;
}
.ab-mobile-store-buttons {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}
.ab-mobile-section {
  max-width: 1100px;
  margin: 0 auto 2.2rem;
}
.ab-mobile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.ab-mobile-card {
  background: rgba(232, 251, 251, 0.95);
  color: #004d5c;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 12px rgba(0, 65, 92, 0.15);
}
.ab-mobile-card-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin-bottom: 0.75rem;
  background: rgba(0, 95, 115, 0.08);
}
.ab-mobile-card-title {
  margin: 0 0 0.5rem;
  font-family: 'Fuzzy Bubbles', cursive;
  font-size: 1.08rem;
  color: #004d5c;
}
.ab-mobile-card-text {
  margin: 0;
  font-family: 'Fuzzy Bubbles', cursive;
  color: #005f73;
  line-height: 1.45;
}
.ab-mobile-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.ab-mobile-feature {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  text-align: center;
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 700;
}

/* Contact page */
.ab-contact-notice {
  max-width: 640px;
  margin: 0 auto 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}
.ab-contact-notice-success {
  background: rgba(180, 240, 200, 0.95);
  color: #0d4d24;
}
.ab-contact-notice-error {
  background: rgba(255 220 220 / 0.95);
  color: #6b1010;
}
.ab-contact-layout {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .ab-contact-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.ab-contact-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: #ffffff;
}
.ab-contact-company-details {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.ab-contact-company-details p {
  margin: 0 0 0.5rem;
}
.ab-contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.ab-contact-social-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
}
.ab-contact-social-link:hover {
  text-decoration: none;
}
.ab-contact-form {
  background: rgba(232, 251, 251, 0.95);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 12px rgba(0, 65, 92, 0.15);
}
.ab-contact-field {
  margin: 0 0 1rem;
}
.ab-contact-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: #004d5c;
  font-weight: 600;
}
.ab-contact-field input[type="text"],
.ab-contact-field input[type="email"],
.ab-contact-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(0, 77, 92, 0.35);
  border-radius: 8px;
  font: inherit;
}
.ab-contact-field textarea {
  resize: vertical;
  min-height: 120px;
}
.ab-contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.ab-contact-submit-wrap {
  margin: 0;
}
.ab-contact-submit {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: 999px;
  background: #00748e;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ab-contact-submit:hover {
  background: #005f73;
}

/* Bingo sheet (4x3 grid, A4-fit) */
.ab-bingo-sheet {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Header row: back | title | print – vertically aligned */
.ab-bingo-sheet-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  min-height: 44px;
  width: 100%;
}

.ab-bingo-sheet-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  justify-content: center;
  margin: 0 auto 1.75rem;
}

.ab-bingo-print-form {
  margin: 0;
}

.ab-bingo-back {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  color: #ffffff;
  text-decoration: none !important;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ab-bingo-back:hover {
  opacity: 0.9;
}

.ab-bingo-back-icon {
  display: block;
  width: 40px;
  height: 40px;
}

.ab-bingo-print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  padding: 0.45rem 1rem;
  font-family: 'Fuzzy Bubbles', cursive;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Keep sheet action buttons immune to theme overrides */
#ab-bingo-printable .ab-bingo-print-btn {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 999px !important;
  text-decoration: none !important;
}

.ab-bingo-print-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

#ab-bingo-printable .ab-bingo-print-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
}

.ab-bingo-print-btn:focus,
.ab-bingo-print-btn:focus-visible,
.ab-bingo-print-btn:active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.18);
}

.ab-bingo-print-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Print button as link - remove button-specific styles when used as <a> */
a.ab-bingo-print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
}

a.ab-bingo-print-btn:visited,
a.ab-bingo-print-btn:hover,
a.ab-bingo-print-btn:focus,
a.ab-bingo-print-btn:active {
  color: #ffffff;
}

#ab-bingo-printable a.ab-bingo-print-btn,
#ab-bingo-printable a.ab-bingo-print-btn:visited,
#ab-bingo-printable a.ab-bingo-print-btn:hover,
#ab-bingo-printable a.ab-bingo-print-btn:focus,
#ab-bingo-printable a.ab-bingo-print-btn:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

.ab-bingo-sheet-title {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
  margin: 0 0 1rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: center;
}

.ab-bingo-sheet-subtitle {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: #ffffff;
  margin: 0 0 2rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-align: center;
}

.ab-bingo-sheet-hint {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 400;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.95);
  margin: -1rem auto 1.25rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 760px;
}

.ab-bingo-sheet-header .ab-bingo-sheet-title {
  width: 100%;
  margin: 0;
  text-align: center;
}

/* Printable area: full viewport width, each cell = screen width / 4 */
#ab-bingo-printable {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 2rem clamp(1rem, 8vw, 8rem) 3rem;
  box-sizing: border-box;
}

.ab-bingo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.ab-bingo-cell {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  padding: 2mm;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 65, 92, 0.15);
  font-family: 'Fuzzy Bubbles', cursive;
  min-height: 0;
}

.ab-bingo-cell-refresh {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(0, 129, 167, 0.15);
  color: #0081A7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 1;
}

.ab-bingo-cell-refresh svg {
  width: 36px;
  height: 36px;
}

.ab-bingo-cell-refresh:hover {
  background: rgba(0, 129, 167, 0.3);
  color: #004D5C;
}

/* Image fills cell width (cell = screen/4), square aspect ratio */
.ab-bingo-cell-image-wrap {
  width: 67%;
  max-width: 67%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 5px;
  background: #ffffff;
  flex-shrink: 0;
}

.ab-bingo-cell-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ab-bingo-cell-title {
  font-weight: 700;
  font-size: 1.13rem;
  color: #004D5C;
  text-align: center;
  margin: 0.33rem 0 0.33rem;
  line-height: 1.2;
}

/* Checkbox hidden on bingo sheet – shown only in PDF */
.ab-bingo-checkbox {
  display: none;
}

@media print {
  .ab-lang-switcher,
  .ab-bingo-back,
  .ab-bingo-print-btn,
  .ab-bingo-cell-refresh {
    display: none !important;
  }
  .ab-bingo-sheet {
    padding: 0;
  }
  .ab-bingo-cell {
    break-inside: avoid;
  }
}

@media (max-width: 1024px) {
  .ab-how-to-play-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #ab-bingo-printable {
    padding: 1.5rem clamp(0.75rem, 4vw, 2.5rem) 2rem;
  }
  .ab-bingo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
  .ab-blog-card,
  .ab-mobile-card,
  .ab-contact-form {
    box-shadow: 0 1px 6px rgba(0, 65, 92, 0.14);
  }
}

@media (max-width: 767px) {
  .ab-how-to-play-grid {
    grid-template-columns: 1fr;
  }
  .ab-header-banner {
    backdrop-filter: none;
  }
  #ab-bingo-printable {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 1rem 0.25rem 1.5rem;
  }
  .ab-bingo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .ab-bingo-cell {
    border-radius: 7px;
    padding: 0.4rem;
  }
  .ab-bingo-cell-title {
    font-size: 0.95rem;
    line-height: 1.18;
  }
  .ab-bingo-cell-refresh {
    width: 42px;
    height: 42px;
  }
  .ab-bingo-cell-refresh svg {
    width: 28px;
    height: 28px;
  }
  .ab-bingo-sheet-header {
    min-height: 40px;
  }
  .ab-bingo-sheet-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .ab-bingo-sheet-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .ab-bingo-sheet-actions .ab-bingo-print-btn,
  .ab-bingo-sheet-actions .ab-bingo-print-form {
    width: 100%;
  }
  .ab-bingo-sheet-actions .ab-bingo-print-form .ab-bingo-print-btn {
    width: 100%;
  }
}
