:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --card-bg: #17191F;
    --body-bg: #0D0E12;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
    --header-offset: 80px; /* Placeholder, actual value from shared.css */
}

.page-bnc {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Dark body background, so light text */
    background-color: var(--body-bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-bnc a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-bnc a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-bnc h1, .page-bnc h2, .page-bnc h3 {
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-bnc h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Flexible font size */
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-bnc h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-bnc h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.page-bnc h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--secondary-color);
}

.page-bnc p {
    margin-bottom: 15px;
}

.page-bnc__section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-bnc__section:last-of-type {
    border-bottom: none;
}

.page-bnc__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-bnc__image-wrapper {
    margin: 40px 0;
    text-align: center;
}

.page-bnc__image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 900px; /* Limit max width for content images */
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Hero Section */
.page-bnc__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    overflow: hidden; /* Ensure image overflow is handled */
}

.page-bnc__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Important for flex child */
}

.page-bnc__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Ensure image is behind text if text is absolutely positioned (not here though) */
}

.page-bnc__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-bnc__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px; /* Add some padding for text on smaller screens */
    box-sizing: border-box;
}

.page-bnc__hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-main);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* CTA Button */
.page-bnc__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff; /* Explicitly white for contrast on gradient */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: none; /* Ensure no default button border */
    cursor: pointer;
}

.page-bnc__cta-button:hover {
    background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%); /* Slightly different gradient on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.page-bnc__cta-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Grid Layout for Cards */
.page-bnc__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-bnc__card {
    background: var(--card-bg); /* Use card background color */
    border: 1px solid var(--border-color); /* Use border color */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main); /* Ensure text is light on dark card bg */
}

.page-bnc__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-bnc__card-title {
    color: var(--secondary-color); /* Use secondary color for card titles */
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Lists */
.page-bnc__list {
    list-style: none;
    padding: 0;
    margin-left: 20px;
}

.page-bnc__list li {
    position: relative;
    margin-bottom: 15px;
    padding-left: 30px;
    color: var(--text-main);
}

.page-bnc__list li::before {
    content: '✓'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.page-bnc__how-to-play .page-bnc__list li::before {
    content: counter(list-item) '.';
    counter-increment: list-item;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
    left: 0;
    position: absolute;
    line-height: 1;
}
.page-bnc__how-to-play .page-bnc__list {
    counter-reset: list-item;
}
.page-bnc__how-to-play .page-bnc__list li {
    padding-left: 40px;
}

/* FAQ Section */
details.page-bnc__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg); /* Use card background for FAQ items */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
details.page-bnc__faq-item summary.page-bnc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main);
}
details.page-bnc__faq-item summary.page-bnc__faq-question::-webkit-details-marker {
  display: none;
}
details.page-bnc__faq-item summary.page-bnc__faq-question:hover {
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter on hover */
}
.page-bnc__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-bnc__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}
details.page-bnc__faq-item .page-bnc__faq-answer {
  padding: 0 25px 20px;
  background: rgba(0, 0, 0, 0.1); /* Slightly darker background for answer */
  border-radius: 0 0 10px 10px;
  color: var(--text-main);
}
details.page-bnc__faq-item .page-bnc__faq-answer p {
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-bnc h1 {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-bnc h2 {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }
    .page-bnc h3 {
        font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    }
    .page-bnc__hero-description {
        font-size: 1rem;
    }
    .page-bnc__cta-button {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .page-bnc__card {
        padding: 25px;
    }
    .page-bnc__faq-qtext {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-bnc {
        font-size: 15px;
        line-height: 1.5;
    }
    .page-bnc__section {
        padding: 40px 0;
    }
    .page-bnc__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-bnc h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-bnc h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }
    .page-bnc h3 {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
    }
    .page-bnc__hero-section {
        padding-top: 10px !important; /* Enforce small top padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-bnc__hero-image img {
        border-radius: 8px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-bnc__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-bnc__cta-wrapper {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-bnc__image-wrapper img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 6px;
    }
    .page-bnc__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-bnc__card {
        padding: 20px;
    }
    details.page-bnc__faq-item summary.page-bnc__faq-question {
        padding: 15px;
    }
    .page-bnc__faq-qtext {
        font-size: 15px;
    }
    .page-bnc__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-bnc__faq-item .page-bnc__faq-answer {
        padding: 0 15px 15px;
    }
    .page-bnc p, .page-bnc li {
        font-size: 15px;
    }
    .page-bnc__list li {
        padding-left: 25px;
    }
    .page-bnc__how-to-play .page-bnc__list li {
        padding-left: 35px;
    }
}

@media (max-width: 480px) {
    .page-bnc h1 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-bnc h2 {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }
    .page-bnc__hero-description {
        font-size: 0.95rem;
    }
    .page-bnc__cta-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}