/*
 * Public CSS Bundle: blog-arena.bundle.css
 * Auto-generated by scripts/bundle_public_css.py
 * DO NOT EDIT - Edit source files instead
 *
 * Sources: blog-arena/blog-arena-base.css, blog-arena/blog-arena-desktop.css, blog-arena/blog-arena-mobile-portrait.css, blog-arena/blog-arena-mobile-landscape.css
 */

/* === blog-arena/blog-arena-base.css === */

/**
 * Arena Blog Post — BASE (shared, no media query)
 *
 * Styles for the interactive Arena guide blog post.
 * All demo elements are self-contained replicas of the real Arena UI,
 * scoped under .arena-blog-demo to avoid collisions with the blog layout.
 *
 * Prefix: abd- (Arena Blog Demo)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700;800&display=swap');

/* ── Demo container ── */
.abd-demo {
    margin: 28px 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.abd-demo-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.abd-demo-label svg {
    width: 14px; height: 14px; color: #94a3b8;
}

.abd-demo-body {
    padding: 20px;
}

/* ── Replay button ── */
.abd-replay {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 4px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.12s;
}
.abd-replay:hover { background: #e2e8f0; }

/* ── Stats strip replica ── */
.abd-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.abd-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    gap: 3px;
    border-right: 1px solid #e2e8f0;
}
.abd-stat:last-child { border-right: none; }

.abd-stat-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.abd-stat-val {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #0f172a;
    line-height: 1;
    display: inline-block;
    transform-origin: center;
}

.abd-stat-streak .abd-stat-val { color: #f59e0b; }
.abd-stat-level .abd-stat-val { color: #1e3a8a; }

/* Gauge pips in stats */
.abd-gauge {
    display: flex;
    gap: 4px;
    margin-top: 2px;
}

.abd-pip {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 1.5px solid #cbd5e1;
    transition: all 0.25s ease;
}

.abd-pip.green {
    background: #22c55e;
    border-color: #16a34a;
    transform: scale(1.15);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.abd-pip.red {
    background: #ef4444;
    border-color: #dc2626;
    transform: scale(1.15);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
    animation: abdPipPulse 0.8s ease-in-out infinite alternate;
}

@keyframes abdPipPulse {
    0%   { box-shadow: 0 0 4px rgba(239, 68, 68, 0.4); }
    100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.7); }
}

.abd-pip.pop {
    animation: abdPipPop 0.3s ease-out;
}
@keyframes abdPipPop {
    0%   { transform: scale(0.5); }
    60%  { transform: scale(1.35); }
    100% { transform: scale(1.15); }
}

/* ── Result card replica ── */
.abd-result {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.abd-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.abd-result-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 4px 14px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}
.abd-result-badge.correct { background: #dcfce7; color: #065f46; }
.abd-result-badge.incorrect { background: #fee2e2; color: #7f1d1d; }

.abd-result-pts-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.abd-result-logo {
    width: 0; height: 0;
    object-fit: contain;
    opacity: 0;
    transition: all 0.3s ease;
}

.abd-result-head.celebrate .abd-result-logo {
    width: 28px; height: 28px;
    opacity: 1;
    animation: abdLogoBurst 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes abdLogoBurst {
    0%   { transform: scale(3); opacity: 0; }
    40%  { transform: scale(1.3); opacity: 1; }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.abd-result-pts {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
}

.abd-result-head.celebrate .abd-result-pts {
    animation: abdPtsScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes abdPtsScale {
    0%   { transform: scale(0.5); opacity: 0; }
    50%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

/* ── Explanation ── */
.abd-explanation {
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.abd-explain-toggle {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
}

.abd-explain-body {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
}
.abd-explain-body p { margin: 0 0 8px; }
.abd-explain-body p:last-child { margin: 0; }

/* ── Side-by-side layout ── */
.abd-side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.abd-side-panel {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: white;
    text-align: center;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.abd-side-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
}
.abd-side-panel.up .abd-side-title { color: #059669; }
.abd-side-panel.down .abd-side-title { color: #dc2626; }

/* Contained level-change animation (not fullscreen) */
.abd-lvl-box {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.abd-lvl-box.up {
    background: radial-gradient(200px 200px at 50% 60%, rgba(34,197,94,0.2), #0f172a 70%);
}
.abd-lvl-box.down {
    background: radial-gradient(200px 200px at 50% 40%, rgba(239,68,68,0.2), #0f172a 70%);
}

.abd-lvl-logo {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px; height: 32px;
    object-fit: contain;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.abd-lvl-box.playing .abd-lvl-logo {
    opacity: 1;
    animation: abdLvlLogoPulse 1s ease-in-out infinite;
}

@keyframes abdLvlLogoPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.08); }
}

.abd-lvl-label {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 2px;
    -webkit-text-stroke: 1.5px white;
    paint-order: stroke fill;
    opacity: 0;
    z-index: 2;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.abd-lvl-box.up .abd-lvl-label { color: #059669; }
.abd-lvl-box.down .abd-lvl-label { color: #dc2626; }

.abd-lvl-box.playing .abd-lvl-label { opacity: 1; }

/* Energy arrows */
.abd-lvl-box .abd-energy {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.abd-lvl-box .abd-arrow {
    position: absolute;
    font-size: 16px;
    opacity: 0;
}

.abd-lvl-box.up.playing .abd-arrow {
    color: rgba(34, 197, 94, 0.6);
    animation: abdArrowUp 1.2s ease-out infinite;
}

.abd-lvl-box.down.playing .abd-arrow {
    color: rgba(239, 68, 68, 0.6);
    animation: abdArrowDown 1.2s ease-out infinite;
}

@keyframes abdArrowUp {
    0%   { transform: translateY(40px); opacity: 0; }
    20%  { opacity: 0.8; }
    100% { transform: translateY(-60px); opacity: 0; }
}

@keyframes abdArrowDown {
    0%   { transform: translateY(-40px); opacity: 0; }
    20%  { opacity: 0.8; }
    100% { transform: translateY(60px); opacity: 0; }
}

/* ── Mock question ── */
.abd-question {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.abd-question-text {
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.55;
    margin-bottom: 14px;
}

.abd-choices {
    display: grid;
    gap: 8px;
}

.abd-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #0f172a;
    cursor: default;
}

.abd-choice-letter {
    flex-shrink: 0;
    width: 26px; height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: #475569;
}

.abd-choice.correct {
    background: #ecfdf5;
    border-color: #22c55e;
    color: #065f46;
}
.abd-choice.correct .abd-choice-letter {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

.abd-choice.incorrect {
    background: #fef2f2;
    border-color: #ef4444;
    color: #7f1d1d;
}
.abd-choice.incorrect .abd-choice-letter {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.abd-choice.picked { border-color: #3b82f6; }

/* ── Canvas demo container ── */
.abd-canvas-wrap {
    width: 100%;
    height: 240px;
    border-radius: 10px;
    overflow: hidden;
    background: #0f172a;
    position: relative;
}
.abd-canvas-wrap canvas { width: 100%; height: 100%; display: block; }

/* ── Subject card replica ── */
.abd-subject-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    max-width: 280px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.abd-subject-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #3b82f6, #1e3a8a);
}

.abd-subject-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.abd-subject-code {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: #1e3a8a;
    line-height: 1;
}

.abd-subject-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: #475569;
}

/* ── Branch rotation wrapper ── */
.abd-branch-rotate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0;
}

.abd-branch-logo {
    width: 36px; height: 36px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    transition: transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    opacity: 0.5;
}
.abd-branch-logo.active {
    opacity: 1;
    transform: scale(1.2);
    border-color: #3b82f6;
}

/* ── CTA section ── */
.abd-cta-section {
    text-align: center;
    margin: 32px 0;
}

.abd-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 2px solid #fdcc05;
    transition: transform 0.12s, box-shadow 0.12s;
}
.article-content .abd-cta,
.article-content .abd-cta:hover,
.article-content .abd-cta:visited,
.abd-cta {
    text-decoration: none !important;
}
.abd-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(253, 204, 5, 0.2);
}

.abd-cta-gold {
    color: #fdcc05;
}


/* === blog-arena/blog-arena-desktop.css === */

/**
 * Arena Blog Post — Desktop (>= 769px)
 */
@media (min-width: 769px) {

.abd-demo-body { padding: 24px; }
.abd-stat { padding: 14px 8px; }
.abd-stat-val { font-size: 1.4rem; }
.abd-pip { width: 9px; height: 9px; }
.abd-side-by-side { gap: 20px; }
.abd-side-panel { padding: 20px; }
.abd-lvl-box { height: 160px; }
.abd-lvl-label { font-size: 1.5rem; }
.abd-canvas-wrap { height: 260px; }
.abd-result-badge { font-size: 0.85rem; }
.abd-result-pts { font-size: 1.05rem; }

} /* end desktop */


/* === blog-arena/blog-arena-mobile-portrait.css === */

/**
 * Arena Blog Post — Mobile Portrait (<= 768px, portrait)
 */
@media (max-width: 768px) and (orientation: portrait) {

.abd-demo { margin: 20px 0; border-radius: 12px; }
.abd-demo-body { padding: 14px; }
.abd-demo-label { font-size: 0.66rem; padding: 6px 12px; }
.abd-stats { grid-template-columns: repeat(5, 1fr); }
.abd-stat { padding: 8px 4px; gap: 2px; }
.abd-stat-label { font-size: 0.54rem; }
.abd-stat-val { font-size: 1rem; }
.abd-pip { width: 6px; height: 6px; border-width: 1px; }
.abd-side-by-side { grid-template-columns: 1fr 1fr; gap: 10px; }
.abd-side-panel { padding: 12px; }
.abd-side-title { font-size: 0.74rem; }
.abd-lvl-box { height: 120px; }
.abd-lvl-label { font-size: 1.1rem; }
.abd-lvl-logo { width: 28px; height: 28px; }
.abd-canvas-wrap { height: 200px; }
.abd-question-text { font-size: 0.88rem; }
.abd-choice { padding: 8px 10px; font-size: 0.82rem; }
.abd-choice-letter { width: 22px; height: 22px; font-size: 0.76rem; }
.abd-result { padding: 10px 14px; gap: 6px; }
.abd-result-head { flex-wrap: wrap; gap: 8px; }
.abd-result-badge { font-size: 0.76rem; padding: 3px 11px; }
.abd-result-pts { font-size: 0.88rem; }
.abd-result-pts-wrap { gap: 6px; }
.abd-result-head.celebrate .abd-result-logo { width: 22px; height: 22px; }
.abd-question { padding: 12px; }
.abd-choices { gap: 6px; }
.abd-gauge { gap: 3px; }
.abd-branch-rotate { gap: 4px; flex-wrap: wrap; justify-content: center; margin: 4px 0; }
.abd-branch-logo { width: 30px; height: 30px; }
.abd-branch-hint-desktop { display: none !important; }
.abd-branch-hint-mobile { display: block !important; }
.abd-replay { font-size: 0.66rem; padding: 3px 10px; }
.abd-subject-card { max-width: 100%; }
.abd-cta { padding: 12px 24px; font-size: 0.88rem; }

} /* end mobile portrait */


/* === blog-arena/blog-arena-mobile-landscape.css === */

/**
 * Arena Blog Post — Mobile Landscape (<= 926px, landscape)
 */
@media (max-width: 926px) and (orientation: landscape) {

.abd-demo { margin: 16px 0; border-radius: 10px; }
.abd-demo-body { padding: 12px; }
.abd-demo-label { font-size: 0.62rem; padding: 5px 10px; }
.abd-stats { border-radius: 8px; }
.abd-stat { padding: 6px 4px; gap: 1px; }
.abd-stat-label { font-size: 0.5rem; }
.abd-stat-val { font-size: 0.88rem; }
.abd-pip { width: 6px; height: 6px; border-width: 1px; }
.abd-side-by-side { gap: 8px; }
.abd-side-panel { padding: 10px; }
.abd-side-title { font-size: 0.68rem; }
.abd-lvl-box { height: 100px; }
.abd-lvl-label { font-size: 0.92rem; }
.abd-lvl-logo { width: 24px; height: 24px; }
.abd-canvas-wrap { height: 170px; }
.abd-question-text { font-size: 0.78rem; }
.abd-choice { padding: 6px 8px; font-size: 0.76rem; }
.abd-choice-letter { width: 20px; height: 20px; font-size: 0.7rem; }
.abd-result { padding: 8px 10px; gap: 4px; }
.abd-result-head { flex-wrap: wrap; gap: 6px; }
.abd-result-badge { font-size: 0.68rem; }
.abd-result-pts { font-size: 0.78rem; }
.abd-result-pts-wrap { gap: 5px; }
.abd-result-head.celebrate .abd-result-logo { width: 18px; height: 18px; }
.abd-question { padding: 10px; }
.abd-choices { gap: 4px; }
.abd-gauge { gap: 3px; }
.abd-branch-rotate { gap: 4px; flex-wrap: wrap; margin: 4px 0; }
.abd-branch-hint-desktop { display: none !important; }
.abd-branch-hint-mobile { display: block !important; }
.abd-branch-logo { width: 26px; height: 26px; }
.abd-replay { font-size: 0.62rem; padding: 3px 8px; }
.abd-cta { padding: 10px 20px; font-size: 0.78rem; }

} /* end mobile landscape */
