/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}*/


/* =========================
   RESET & BASE
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1f2937;
    background-color: #ffffff;
    line-height: 1.6;
}

/* =========================
   GLOBAL ELEMENTS
========================= */
a {
    color: #2563eb;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.25;
    color: #111827;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* =========================
   LAYOUT UTILITIES
========================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-main {
    min-height: 60vh;
}

/* =========================
   HEADER
========================= */
.site-header {
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111827;
}

.main-nav a {
    margin-left: 1.25rem;
    font-size: 0.95rem;
    color: #374151;
}

    .main-nav a:hover {
        color: #2563eb;
    }

/* =========================
   HERO SECTION
========================= */
.tool-hero {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 2.5rem 0;
    text-align: center;
}

.hero-subtitle {
    max-width: 700px;
    margin: 0.75rem auto 0;
    color: #4b5563;
}

/* =========================
   WHEEL TOOL
========================= */
.wheel-tool {
    padding: 3rem 0;
}

.wheel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.wheel-area {
    text-align: center;
}

.wheel-canvas {
    width: 280px;
    height: 280px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    border: 6px solid #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.wheel-placeholder {
    color: #6b7280;
    font-size: 0.9rem;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
}

    .btn-primary:hover {
        background: #1d4ed8;
    }

.wheel-inputs label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.wheel-inputs textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
}

.tool-options {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #374151;
}

/* =========================
   AD SECTION (SAFE)
========================= */
.ad-section {
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

/* =========================
   TOOL INFO
========================= */
.tool-info {
    padding: 3rem 0;
    background: #f9fafb;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

    .feature-list li {
        margin-bottom: 0.5rem;
        color: #374151;
    }

/* =========================
   INTERNAL LINKS
========================= */
.internal-links {
    padding: 2.5rem 0;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.internal-card {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    background: #ffffff;
    font-size: 0.95rem;
}

    .internal-card:hover {
        border-color: #2563eb;
        background: #f9fafb;
    }

/* =========================
   FOOTER
========================= */
.site-footer {
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 2.5rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.site-footer h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 0.35rem;
}

.site-footer a {
    font-size: 0.9rem;
    color: #374151;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .wheel-grid {
        grid-template-columns: 1fr;
    }

    .link-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .main-nav a {
        margin-left: 0.75rem;
    }
}


/* Spin animation */
.wheel-canvas.spinning {
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.wheel-result {
    font-size: 1.2rem;
    color: #111827;
    text-align: center;
}


/* =====================
   NAMES ON WHEEL
===================== */
.wheel-names {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto;
}

    .wheel-names li {
        padding: 0.4rem;
        margin: 0.2rem 0;
        background: #ffffff;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.9rem;
        border: 1px solid #e5e7eb;
    }

        .wheel-names li:hover {
            background: #fee2e2;
            border-color: #dc2626;
        }

/* =====================
   MODAL
===================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

    .modal.hidden {
        display: none;
    }

.modal-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 380px;
}

    .modal-content h2 {
        margin-bottom: 0.5rem;
    }

    .modal-content p {
        font-size: 1.3rem;
        font-weight: 600;
    }

.modal-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-secondary {
    background: #e5e7eb;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
}

/* =====================
   CONFETTI
===================== */
#confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

    #confetti span {
        position: absolute;
        top: -10px;
        width: 8px;
        height: 8px;
        animation: confetti 2.5s linear forwards;
    }

@keyframes confetti {
    to {
        transform: translateY(400px) rotate(360deg);
        opacity: 0;
    }
}


/* =====================
   CANVAS WHEEL
===================== */
#wheelCanvasWrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

#wheelCanvas {
    border-radius: 50%;
    border: 6px solid #2563eb;
    background: #f3f4f6;
}


#wheelCanvas {
    cursor: pointer;
    touch-action: manipulation;
}


    #wheelCanvas:hover {
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15);
    }



.scoreboard {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.player {
    padding: 8px 14px;
    border-radius: 10px;
    background: #e5e7eb;
    font-weight: 600;
}

    .player.active {
        background: #2563eb;
        color: #fff;
    }

.game-mode {
    text-align: center;
    margin-bottom: 10px;
}

.turn-info {
    text-align: center;
    font-weight: 600;
    margin-top: 8px;
}


.tool-container {
    max-width: 720px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.tool-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111827;
}


.game-mode {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 18px;
}

    .game-mode label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 600;
        cursor: pointer;
        color: #374151;
    }

    .game-mode input[type="radio"] {
        accent-color: #2563eb;
    }


.scoreboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.player {
    text-align: center;
    padding: 12px 10px;
    border-radius: 14px;
    background: #f3f4f6;
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
    transition: all 0.3s ease;
}

    .player span {
        display: block;
        font-size: 1.4rem;
        font-weight: 800;
        margin-top: 4px;
    }

    .player.active {
        background: linear-gradient(135deg, #2563eb, #1e40af);
        color: #ffffff;
        transform: scale(1.05);
    }



#wheelCanvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    cursor: pointer;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}


.turn-info {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: #374151;
    margin: 14px 0 10px;
}


.secondary-btn {
    display: block;
    margin: 12px auto 0;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: #e5e7eb;
    color: #111827;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .secondary-btn:hover {
        background: #d1d5db;
        transform: translateY(-1px);
    }




@media (max-width: 480px) {
    .tool-container {
        padding: 16px;
    }

    .tool-title {
        font-size: 1.5rem;
    }

    .player {
        font-size: 0.95rem;
    }

        .player span {
            font-size: 1.2rem;
        }
}


#wheelCanvas:active {
    transform: scale(0.99);
}


.target-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-weight: 600;
}

    .target-score select {
        padding: 6px 10px;
        border-radius: 8px;
        border: 1px solid #d1d5db;
        font-weight: 600;
    }


.winner-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .winner-modal.hidden {
        display: none;
    }

.winner-content {
    background: #ffffff;
    padding: 28px 32px;
    border-radius: 18px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    position: relative;
    z-index: 2;
}

    .winner-content h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .winner-content p {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 18px;
    }

.primary-btn {
    padding: 10px 24px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

    .primary-btn:hover {
        transform: translateY(-1px);
    }


#confettiCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}





/* Wheel + Arrow */
.wheel-wrapper {
    position: relative;
    width: 320px;
    margin: 0 auto 10px;
}

.wheel-arrow {
    position: absolute;
    top: -10px; /* slightly above wheel */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    /* Arrow pointing DOWN into the wheel */
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 22px solid #dc2626;
    z-index: 10;
    pointer-events: none;
}


@keyframes arrowBounce {
    0% {
        transform: translateX(-50%) translateY(-4px);
    }

    100% {
        transform: translateX(-50%) translateY(0);
    }
}


.wheel-arrow.bounce {
    animation: arrowBounce 0.25s ease-out;
}




.blog-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
    color: #374151;
    font-size: 1.05rem;
}

.blog-list {
    display: grid;
    gap: 18px;
}

.blog-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

    .blog-card h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

        .blog-card h2 a {
            color: #1f2933;
            text-decoration: none;
        }

            .blog-card h2 a:hover {
                text-decoration: underline;
            }

    .blog-card p {
        color: #4b5563;
        margin-bottom: 10px;
    }

.read-more {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

    .read-more:hover {
        text-decoration: underline;
    }


.breadcrumb-ui {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 12px;
}

    .breadcrumb-ui a {
        color: #2563eb;
        text-decoration: none;
    }



/* =========================
   FINAL NORMALIZATION FIXES
   (SAFE OVERRIDES)
========================= */

/* Ensure only ONE visual style for wheel */
#wheelCanvas {
    width: 320px;
    height: 320px;
    max-width: 100%;
    border-radius: 50%;
    border: 6px solid #2563eb;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Lock scoreboard layout (grid wins over flex) */
.scoreboard {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Normalize player card appearance */
.player {
    padding: 12px 10px;
    border-radius: 14px;
    background: #f3f4f6;
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
    transition: all 0.3s ease;
}

    .player span {
        display: block;
        font-size: 1.4rem;
        font-weight: 800;
        margin-top: 4px;
    }

    /* Active player highlight */
    .player.active {
        background: linear-gradient(135deg, #2563eb, #1e40af);
        color: #ffffff;
        transform: scale(1.05);
    }

/* Force wheel wrapper alignment */
.wheel-wrapper {
    position: relative;
    width: 320px;
    margin: 0 auto 12px;
}

/* Arrow always points INTO wheel */
.wheel-arrow {
    top: -12px;
    border-top-color: #dc2626;
}

/* Prevent double hover shadows */
#wheelCanvas:hover {
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15), 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Modal safety */
.winner-modal {
    backdrop-filter: blur(2px);
}

/* Blog card consistency */
.blog-card {
    border: 1px solid #e5e7eb;
}

/* Mobile wheel fix */
@media (max-width: 480px) {
    #wheelCanvas {
        width: 260px;
        height: 260px;
    }
}



/* =========================
   BLOG PAGE STABILIZATION
   (SAFE OVERRIDES ONLY)
========================= */

.blog-container {
    max-width: 840px;
    margin: 48px auto;
    padding: 0 18px;
    line-height: 1.75;
    color: #111827;
}

/* Header */
.blog-header {
    margin-bottom: 32px;
}

    .blog-header h1 {
        font-size: 2.3rem;
        line-height: 1.25;
        margin-bottom: 10px;
    }

.blog-subtitle {
    font-size: 1.15rem;
    color: #374151;
    max-width: 720px;
}

/* Content */
.blog-content h2 {
    font-size: 1.55rem;
    margin-top: 36px;
    margin-bottom: 12px;
}

.blog-content p {
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.blog-content ul,
.blog-content ol {
    margin: 14px 0 18px 22px;
}

.blog-content li {
    margin-bottom: 8px;
}

/* Highlight box */
.blog-highlight {
    margin: 28px 0;
    padding: 16px 18px;
    background: #f0f9ff;
    border-left: 5px solid #2563eb;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Footer */
.blog-footer {
    margin-top: 48px;
    text-align: center;
}

    .blog-footer .primary-btn {
        display: inline-block;
        padding: 12px 26px;
        font-size: 1rem;
    }

/* Breadcrumb UI (bottom) */
.breadcrumb-ui {
    margin-top: 18px;
    font-size: 0.9rem;
    color: #6b7280;
}

    .breadcrumb-ui a {
        color: #2563eb;
        text-decoration: none;
    }

        .breadcrumb-ui a:hover {
            text-decoration: underline;
        }

/* Mobile spacing fix */
@media (max-width: 640px) {
    .blog-header h1 {
        font-size: 1.9rem;
    }

    .blog-content h2 {
        font-size: 1.35rem;
    }
}








