body {
    background:
        radial-gradient(circle at 78% 8%, rgba(255, 215, 0, 0.08), transparent 28rem),
        var(--portfolio-black, #080808);
}

.breakpong-hero {
    position: relative;
    min-height: 92vh;
    padding: 118px 20px 56px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(8, 8, 8, 0.96) 0%, rgba(8, 8, 8, 0.84) 52%, rgba(8, 8, 8, 0.72) 100%),
        radial-gradient(circle at 72% 22%, rgba(118, 227, 255, 0.16), transparent 24rem),
        radial-gradient(circle at 22% 74%, rgba(255, 215, 0, 0.12), transparent 22rem),
        #080808;
    overflow: hidden;
}

.breakpong-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.45;
    mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.breakpong-hero-grid {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 38px;
    align-items: center;
}

.breakpong-hero-copy {
    text-align: left;
}

.back-link,
.project-kicker {
    display: inline-flex;
    align-items: center;
    color: var(--portfolio-ai, #76e3ff);
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.back-link {
    margin-bottom: 22px;
    color: var(--portfolio-gold, #ffd700);
}

.back-link::before {
    content: '<';
    margin-right: 8px;
}

.project-kicker {
    margin-bottom: 14px;
}

.breakpong-hero h1 {
    margin: 0;
    max-width: 680px;
    color: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.project-lead {
    max-width: 620px;
    margin: 20px 0 0;
    color: var(--portfolio-muted, #cfcfcf);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.6;
}

.breakpong-hero .hero-buttons {
    justify-content: flex-start;
    margin-top: 28px;
}

.project-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.project-facts span {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(24, 24, 24, 0.76);
    color: #e8e8e8;
    font-size: 0.78rem;
    font-weight: 800;
}

.breakpong-preview {
    padding: 18px;
    border: 1px solid rgba(255, 215, 0, 0.24);
    border-radius: 12px;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 215, 0, 0.14), transparent 34%),
        rgba(24, 24, 24, 0.82);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.breakpong-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-detail {
    max-width: none;
    margin: 0;
    padding: 54px 20px;
    color: #fff;
    background: var(--portfolio-surface, #111);
}

.project-detail .section {
    width: min(980px, 100%);
    margin: 0 auto 22px;
}

.project-card-section {
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: var(--portfolio-card, #202020);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.project-detail .section h2 {
    margin: 0 0 18px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--portfolio-line, rgba(255, 215, 0, 0.2));
    color: var(--portfolio-gold, #ffd700);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    line-height: 1.15;
    text-align: left;
}

.project-detail .section p,
.project-detail .section li {
    color: var(--portfolio-muted, #cfcfcf);
    font-size: 1rem;
    line-height: 1.75;
}

.project-detail .section p {
    margin-bottom: 14px;
}

.detail-list {
    display: grid;
    gap: 12px;
    padding-left: 0;
    list-style: none;
}

.detail-list li {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: rgba(15, 15, 15, 0.46);
}

.mechanics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screenshot-img {
    display: block;
    width: 100%;
    max-width: 860px;
    height: auto;
    margin: 22px auto 0;
    border: 1px solid rgba(255, 215, 0, 0.32);
    border-radius: 10px;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

.code-section {
    width: min(1120px, 100%);
}

.code-editor {
    overflow: hidden;
    margin: 20px 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: #111318;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.editor-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #191c22;
    color: #aeb5bf;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
}

.editor-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
}

.editor-header .dot:nth-child(2) {
    background: #ffbd2e;
}

.editor-header .dot:nth-child(3) {
    background: #27c93f;
    margin-right: 6px;
}

pre {
    margin: 0;
    padding: 18px;
    color: #f8f8f2;
    background: #111318;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.86rem;
    line-height: 1.55;
    overflow-x: auto;
}

code {
    white-space: pre;
}

.demo {
    text-align: center;
}

.demo h2 {
    text-align: center;
}

.demo .hero-buttons {
    justify-content: center;
}

html[data-theme-effective="light"] body {
    background:
        radial-gradient(circle at 78% 8%, rgba(185, 129, 0, 0.12), transparent 28rem),
        var(--portfolio-black, #f8f4ea);
}

html[data-theme-effective="light"] .breakpong-hero {
    color: #171717;
    background:
        linear-gradient(90deg, rgba(248, 244, 234, 0.97) 0%, rgba(248, 244, 234, 0.88) 52%, rgba(248, 244, 234, 0.78) 100%),
        radial-gradient(circle at 72% 22%, rgba(8, 127, 158, 0.14), transparent 24rem),
        radial-gradient(circle at 22% 74%, rgba(185, 129, 0, 0.14), transparent 22rem),
        #f8f4ea;
}

html[data-theme-effective="light"] .breakpong-hero::before {
    opacity: 0.3;
    background:
        linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
}

html[data-theme-effective="light"] .breakpong-hero h1 {
    color: #171717;
}

html[data-theme-effective="light"] .breakpong-preview,
html[data-theme-effective="light"] .project-card-section {
    border-color: rgba(32, 32, 32, 0.09);
    background: var(--portfolio-card, #fffdf7);
    box-shadow: 0 14px 34px rgba(90, 70, 30, 0.12);
}

html[data-theme-effective="light"] .project-facts span,
html[data-theme-effective="light"] .detail-list li {
    border-color: rgba(32, 32, 32, 0.08);
    background: rgba(255, 250, 240, 0.72);
    color: #383838;
}

html[data-theme-effective="light"] .project-detail {
    color: #171717;
    background: var(--portfolio-surface, #fffaf0);
}

html[data-theme-effective="light"] .project-detail .section p,
html[data-theme-effective="light"] .project-detail .section li,
html[data-theme-effective="light"] .project-lead {
    color: var(--portfolio-muted, #3f4448);
}

html[data-theme-effective="light"] .code-editor {
    border-color: rgba(32, 32, 32, 0.12);
}

@media (max-width: 900px) {
    .breakpong-hero {
        padding: 112px 16px 42px;
    }

    .breakpong-hero-grid,
    .mechanics-grid {
        grid-template-columns: 1fr;
    }

    .breakpong-hero-copy {
        text-align: center;
    }

    .breakpong-hero .hero-buttons,
    .project-facts {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .breakpong-hero {
        min-height: auto;
        padding-top: 138px;
    }

    .breakpong-hero h1 {
        font-size: 2.7rem;
    }

    .project-detail {
        padding: 34px 14px;
    }

    .project-card-section {
        padding: 18px;
    }

    .breakpong-preview {
        padding: 10px;
    }

    pre {
        padding: 14px;
        font-size: 0.78rem;
    }
}
