
body {
  background-color: #1a1410;
  background-image: url('images/bg-pattern.png');
  background-size: 600px 600px;
  background-repeat: repeat;
  background-attachment: scroll;
  color: #fff;
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  box-shadow: none;
}

/* =======================================
   RESET
======================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}



/* =======================================
   VARIABLES
======================================= */

:root{

    --bg:#050505;
    --panel:#0f0f0f;
    --panel2:#151515;

    --line:#242424;

    --white:#ffffff;

    --accent:#d7ff00;

    --orange:#ff5a1f;

    --blue:#3d7dff;

    --purple:#d04dff;

    --paper:#e8e8e8;

}

/* =======================================
   GRUNGE BACKGROUND
======================================= */

body::before{

    content:"";
    position:fixed;
    inset:0;

    background:
    radial-gradient(circle at top left,
    rgba(255,255,255,.04),
    transparent 35%),

    radial-gradient(circle at bottom right,
    rgba(255,255,255,.03),
    transparent 35%),

    linear-gradient(
    rgba(255,255,255,.02),
    rgba(255,255,255,.01));

    pointer-events:none;
    z-index:-1;
}

/* =======================================
   CONTAINER WIDTH
======================================= */

section,
footer,
.navbar{

    width:min(1400px,95%);
    margin:auto;
}

/* =======================================
   NAVIGATION
======================================= */

.navbar{

    height:90px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    border-bottom:1px solid #222;
}

.logo h2{

    font-size:34px;
    font-weight:700;
    letter-spacing:2px;
}

.logo span{

    font-size:13px;
    color:#ccc;
    letter-spacing:4px;
}

nav{

    display:flex;
    gap:50px;
}

nav a{

    color:#fff;
    text-decoration:none;

    font-size:15px;
    letter-spacing:1px;

    transition:.3s;
}

nav a:hover{

    color:var(--accent);
}

nav a.active{

    color:var(--accent);
}

.menu-btn{

    background:var(--accent);

    color:#000;

    border:none;

    padding:12px 22px;

    font-weight:700;

    cursor:pointer;

    text-transform:uppercase;

    display:none;
}

/* =======================================
   HERO
======================================= */

.hero{

    padding:16px 0 12px !important;
}

.type-card{

    display:grid;

    grid-template-columns:
    150px 1fr 200px !important;

    gap:16px !important;

    align-items:center;
}

.sticker{

    background:var(--paper);

    color:#111;

    padding:16px !important;

    transform:rotate(-4deg);

    font-size:28px !important;

    font-weight:700;

    font-family:'Special Elite','Courier New',cursive;

    position:relative;
}

.sticker span{

    display:block;

    font-size:15px;

    color:#8ca100;

    margin-top:10px;
}

.input-area{

    background:#e8e8e8;

    position:relative;

    padding:25px;
}

.input-area::before{

    content:"";

    position:absolute;

    inset:0;

    border:8px solid transparent;

    background:
    repeating-linear-gradient(
    90deg,
    transparent,
    transparent 15px,
    rgba(0,0,0,.03) 15px,
    rgba(0,0,0,.03) 20px);

    pointer-events:none;
}

.input-area textarea{

    width:100%;
    height:90px !important;

    background:none;

    border:none;

    resize:none;

    outline:none;

    color:#111;

    font-size:36px !important;

    font-family:'Special Elite','Courier New',cursive;
}

.action-buttons{

    display:flex;
    flex-direction:column;
    gap:10px !important;
}

.generate-btn{

    background:var(--accent);

    color:#000;

    border:none;

    height:52px !important;

    font-size:16px !important;

    font-weight:700;

    cursor:pointer;
}

.clear-btn{

    height:52px !important;

    border:1px solid #444;

    background:#161616;

    color:#fff;

    cursor:pointer;
}

/* =======================================
   SECTION HEADERS
======================================= */

.section-head{

    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:25px;
}

.section-head h3{

    font-size:24px;
    letter-spacing:2px;
}

.section-head a{

    color:#fff;
    text-decoration:none;
}

.frame-section{

    margin-top:8px !important;
}

/* =======================================
   FRAMES
======================================= */

.frame-row{

    display:flex;
    gap:10px !important;

    overflow-x:auto;

    padding-bottom:10px;
}

.frame{

    min-width:170px;

    border:1px solid #2a2a2a;

    background:#101010;

    text-align:center;

    padding:22px;

    cursor:pointer;

    transition:.3s;
}

.frame:hover{

    border-color:var(--accent);
}

.frame.active{

    border:2px solid var(--accent);

    box-shadow:
    0 0 20px rgba(215,255,0,.15);
}

.frame span{

    display:block;

    margin-top:12px;

    opacity:.6;
}

/* =======================================
   CONTROLS
======================================= */

.controls{

    display:flex;
    justify-content:space-between;
    align-items:center;

    margin:16px auto !important;
}

.slider-box{

    width:420px;
}

.slider-box label{

    display:block;
    margin-bottom:12px;
}

.slider-box input{

    width:100%;
}

.social-icons{

    display:flex;
    gap:10px !important;
}

.social-icons span{

    width:58px;
    height:58px;

    border:1px solid #333;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    font-size:22px;

    transition:.3s;
}

.social-icons span:hover{

    border-color:var(--accent);
    color:var(--accent);
}

/* =======================================
   GRID FOUNDATION
======================================= */

.fonts-grid{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:16px !important;

    margin-top:30px;
}

/* =======================================
   CARD FOUNDATION
======================================= */

.font-card{

    background:#0d0d0d;

    border:1px solid #222;

    position:relative;

    padding:25px;

    overflow:hidden;
}

.card-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    margin-bottom:25px;
}

.card-header h2{

    font-size:44px;
    line-height:1;
}

.card-header p{

    font-size:22px;
    color:#ddd;
}

.badge{

    width:90px;
    height:90px;

    background:var(--accent);

    color:#000;

    display:flex;

    flex-direction:column;

    justify-content:center;
    align-items:center;

    font-weight:700;
}

.badge span{

    font-size:12px;
}

/* =======================================
   CATEGORIES
======================================= */

.categories{

    margin-top:60px;
}

.categories h2{

    margin-bottom:25px;

    font-size:38px;
}

.category-row{

    display:flex;
    gap:15px;

    overflow:auto;
}

.cat{

    min-width:140px;

    padding:22px;

    text-align:center;

    border:1px solid #222;

    background:#111;

    transition:.3s;
}

.cat:hover{

    border-color:var(--accent);
}

/* =======================================
   FOOTER
======================================= */

footer{

    margin-top:80px;

    border-top:1px solid #222;

    padding:50px 0;

    display:grid;

    grid-template-columns:
    1fr 1fr 1fr;

    gap:40px;
}

.footer-links{

    display:flex;
    flex-direction:column;
    gap:12px;
}

.footer-links a{

    text-decoration:none;
    color:#ccc;
}

.footer-quote{

    font-family:'Special Elite','Courier New',cursive;

    color:#d8d8d8;

    font-size:24px;
}

/* =======================================
   SCROLLBAR
======================================= */

::-webkit-scrollbar{

    width:8px;
    height:8px;
}

::-webkit-scrollbar-track{

    background:#111;
}

::-webkit-scrollbar-thumb{

    background:var(--accent);
}

/* =======================================
   RESPONSIVE FOUNDATION
======================================= */

@media(max-width:1000px){

    .type-card{

        grid-template-columns:1fr;
    }

    .fonts-grid{

        grid-template-columns:1fr;
    }

    footer{

        grid-template-columns:1fr;
    }

    .controls{

        flex-direction:column;
        gap:16px !important;
    }

    .slider-box{

        width:100%;
    }

}

@media(max-width:768px){

    nav{

        display:none;
    }

    .navbar{

        height:75px;
    }

    .logo h2{

        font-size:24px;
    }

    .input-area textarea{

        font-size:28px;
        height:120px;
    }

    .categories h2{

        font-size:28px;
    }

}


/* ==========================================
   FONT LISTS
========================================== */

.font-list{

    display:flex;
    flex-direction:column;

    border-top:1px solid #1f1f1f;
}

.font-row {
    min-height: 72px; height: auto;
    display: flex;
    align-items: flex-start;
    padding: 0 20px;
    border-bottom: 1px solid #111;
    gap: 0;
    transition: background 0.2s;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.font-row:hover {
    background: rgba(255,255,255,0.03);
}

.font-row-num {
    width: 44px;
    flex-shrink: 0;
    font-size: 12px;
    color: #444;
    font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    font-weight: 400;
    counter-increment: font-item;
}

.font-row-num::before {
    content: counter(font-item, decimal-leading-zero);
}

.font-list {
    counter-reset: font-item;
}

.font-sample {
    flex: 1;
    min-width: 0;
    font-size: 28px;
    color: #f0f0f0;
    white-space: pre-wrap;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.4;
    transition: font-size 0.1s ease;
    display: block;
    padding: 0 16px;
    text-align: left;
}

.font-row-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
    margin-left: auto;
}

.btn-copy {
    height: 34px;
    padding: 0 14px;
    background: var(--accent);
    color: #000;
    border: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    clip-path: none;
}

.btn-copy:hover { opacity: 0.85; }

.btn-copy.copied {
    background: #00c853;
    color: #fff;
}





/* ==========================================
   FONT STYLES
========================================== */

.gothic span{

    font-family:
    "Old English Text MT",
    serif;
}

.serif span{

    font-family:
    Georgia,
    serif;
}

.bold span{

    font-weight:700;
}

.circles span{

    letter-spacing:3px;
}

/* ==========================================
   BADGE COLORS
========================================== */

.badge.orange{

    background:var(--orange);
    color:#fff;
}

.badge.blue{

    background:var(--blue);
    color:#fff;
}

.badge.purple{

    background:var(--purple);
    color:#fff;
}

/* ==========================================
   DISTRESSED PAPER LABELS
========================================== */

.card-header h2{

    position:relative;

    display:inline-block;

    padding:10px 18px;

    color:#111;

    background:#ececec;

    font-family:'Special Elite','Courier New',cursive;

    transform:rotate(-2deg);

    box-shadow:
    0 5px 15px rgba(0,0,0,.35);
}

.card-header p{

    display:inline-block;

    margin-top:8px;

    padding:8px 14px;

    background:#f3f3f3;

    color:#111;

    font-family:'Special Elite','Courier New',cursive;

    transform:rotate(-1deg);
}

/* ==========================================
   BRUSH ACCENTS
========================================== */

.font-card:nth-child(1) .card-header h2::after{

    content:"";

    position:absolute;

    width:110%;

    height:8px;

    left:-5%;

    bottom:-8px;

    background:var(--accent);
}

.font-card:nth-child(2) .card-header h2::after{

    content:"";

    position:absolute;

    width:110%;

    height:8px;

    left:-5%;

    bottom:-8px;

    background:var(--orange);
}

.font-card:nth-child(3) .card-header h2::after{

    content:"";

    position:absolute;

    width:110%;

    height:8px;

    left:-5%;

    bottom:-8px;

    background:var(--blue);
}

.font-card:nth-child(4) .card-header h2::after{

    content:"";

    position:absolute;

    width:110%;

    height:8px;

    left:-5%;

    bottom:-8px;

    background:var(--purple);
}

/* ==========================================
   CARD CORNERS
========================================== */

/* NOTE: .font-card::after is overridden in textures section below.
   Keeping this declaration removed to avoid conflict. */

/* ==========================================
   GLOW EFFECTS
========================================== */

.font-card:nth-child(1){

    box-shadow:
    inset 0 0 0 1px rgba(215,255,0,.05);
}

.font-card:nth-child(2){

    box-shadow:
    inset 0 0 0 1px rgba(255,90,31,.08);
}

.font-card:nth-child(3){

    box-shadow:
    inset 0 0 0 1px rgba(61,125,255,.08);
}

.font-card:nth-child(4){

    box-shadow:
    inset 0 0 0 1px rgba(208,77,255,.08);
}

/* ==========================================
   SECTION NUMBERING
========================================== */



/* ==========================================
   GLITCH EFFECT
========================================== */

.glitch .font-row span{

    letter-spacing:2px;

    text-transform:uppercase;
}

.glitch .font-row:nth-child(odd) span{

    text-shadow:
    -1px 0 red,
     1px 0 cyan;
}

/* ==========================================
   IMAGE PLACEHOLDERS
========================================== */

.font-card .art-image{

    position:absolute;

    right:20px;

    top:20px;

    width:140px;

    opacity:.22;

    pointer-events:none;
}

/* ==========================================
   COPY ICON STYLE
========================================== */



/* ==========================================
   CATEGORY STYLE
========================================== */

.cat{

    font-weight:500;

    letter-spacing:1px;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;
}

/* ==========================================
   SOCIAL BUTTONS
========================================== */

.social-icons span{

    background:#0e0e0e;
}

/* ==========================================
   FRAME CARDS
========================================== */

.frame.active::before{

    content:"";

    position:absolute;

    inset:-1px;

    border:1px solid var(--accent);

    pointer-events:none;
}

/* ==========================================
   NEON LINE
========================================== */

.section-head h3{

    display:inline-block;

    position:relative;
}

.section-head h3::after{

    content:"";

    position:absolute;

    width:120px;

    height:3px;

    background:var(--accent);

    left:0;
    bottom:-8px;
}


/* ==========================================
   GLOBAL NOISE TEXTURE
========================================== */

body::after{

    content:"";

    position:fixed;

    inset:0;

    pointer-events:none;

    opacity:.08;

    background-image:

    radial-gradient(circle at 20% 20%,
    rgba(255,255,255,.15) 1px,
    transparent 1px),

    radial-gradient(circle at 70% 40%,
    rgba(255,255,255,.15) 1px,
    transparent 1px),

    radial-gradient(circle at 30% 80%,
    rgba(255,255,255,.15) 1px,
    transparent 1px);

    background-size:
    180px 180px,
    220px 220px,
    160px 160px;

}

/* ==========================================
   SCRATCHED BACKGROUND
========================================== */



body::after{

    content: "";

    position: fixed;

    inset: 0;

    background: rgba(15,10,8,0.35) !important;

    pointer-events: none;

    z-index: -1;
}

/* ==========================================
   TORN PAPER HERO
========================================== */

.input-area{

    position:relative;

    background:#e7e7e7;

    clip-path:polygon(
    0 3%,
    2% 0,
    8% 2%,
    15% 0,
    30% 2%,
    60% 0,
    100% 4%,
    100% 96%,
    96% 100%,
    70% 98%,
    30% 100%,
    0 97%);
}

.input-area::after{

    content:"";

    position:absolute;

    inset:-2px;

    pointer-events:none;

    background:
    repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 8px,
    rgba(0,0,0,.03) 9px,
    rgba(0,0,0,.03) 12px);

    mix-blend-mode:multiply;
}

/* ==========================================
   PAPER STICKER TAPE
========================================== */

.sticker::before{

    content:"";

    position:absolute;

    width:70px;
    height:18px;

    background:
    rgba(255,255,255,.55);

    top:-12px;
    left:50%;

    transform:
    translateX(-50%)
    rotate(-6deg);

}

.sticker::after{

    content:"";

    position:absolute;

    width:50px;
    height:16px;

    background:
    rgba(255,255,255,.45);

    bottom:-10px;
    right:10px;

    transform:
    rotate(8deg);
}

/* ==========================================
   TORN TITLE LABELS
========================================== */





/* ==========================================
   MASKING TAPE ON CARDS
========================================== */

.font-card::before{

    content:"";

    position:absolute;

    width:90px;
    height:22px;

    background:
    rgba(255,255,255,.25);

    top:-10px;
    right:20px;

    transform:
    rotate(8deg);

    pointer-events:none;
}

/* ==========================================
   PAINT SPLATTER + CARD ::AFTER
========================================== */

.font-card::after{

    content:"";

    position:absolute;

    width:120px;
    height:120px;

    top:20px;
    right:20px;

    border-radius:50%;

    opacity:.6;

    pointer-events:none;
}

.font-card:nth-child(1)::after{

    background:

    radial-gradient(
    circle at 30% 30%,
    rgba(215,255,0,.25),
    transparent 60%),

    radial-gradient(
    circle at 60% 20%,
    rgba(215,255,0,.18),
    transparent 40%);
}

.font-card:nth-child(2)::after{

    background:

    radial-gradient(
    circle at 20% 40%,
    rgba(255,90,31,.28),
    transparent 60%);
}

.font-card:nth-child(3)::after{

    background:

    radial-gradient(
    circle at 70% 20%,
    rgba(61,125,255,.25),
    transparent 60%);
}

.font-card:nth-child(4)::after{

    background:

    radial-gradient(
    circle at 50% 30%,
    rgba(208,77,255,.28),
    transparent 60%);
}

/* ==========================================
   POSTER BORDER + DISTRESSED EDGES
========================================== */

.font-card{

    border:

    1px solid rgba(255,255,255,.08);

    box-shadow:

    inset 0 0 0 1px rgba(255,255,255,.03),

    0 0 0 1px rgba(0,0,0,.8),

    0 20px 40px rgba(0,0,0,.35);

    overflow: hidden;
}

/* ==========================================
   GLITCH CARD SPECIAL EFFECT
========================================== */

.glitch{

    position:relative;
}

.glitch::before{

    content:"";

    position:absolute;

    inset:0;

    background:

    linear-gradient(
    transparent 20%,
    rgba(255,0,0,.03) 21%,
    transparent 22%),

    linear-gradient(
    transparent 60%,
    rgba(0,255,255,.03) 61%,
    transparent 62%);

    pointer-events:none;
}

/* ==========================================
   GLITCH SCANLINES
========================================== */

.glitch .font-row{

    position:relative;
}

.glitch .font-row::after{

    content:"";

    position:absolute;

    left:0;
    right:0;
    top:50%;

    height:1px;

    background:
    rgba(255,255,255,.06);
}

/* ==========================================
   CATEGORY HOVER CIRCLE
========================================== */

.cat{

    position:relative;

    overflow:hidden;
}

.cat::before{

    content:"";

    position:absolute;

    width:60px;
    height:60px;

    background:
    rgba(255,255,255,.03);

    border-radius:50%;

    top:-20px;
    right:-20px;
}

.cat:hover::before{

    transform:scale(1.4);
    transition:.4s;
}

/* ==========================================
   FRAME ROW LINE
========================================== */

.frame-row{

    position:relative;
}

.frame-row::before{

    content:"";

    position:absolute;

    left:0;
    right:0;
    top:50%;

    height:1px;

    background:
    rgba(255,255,255,.06);

    z-index:-1;
}

/* ==========================================
   HERO SHADOW
========================================== */

.hero{

    position:relative;
}

.hero::after{

    content:"";

    position:absolute;

    left:0;
    right:0;
    bottom:-40px;

    height:120px;

    background:

    radial-gradient(
    ellipse at center,
    rgba(215,255,0,.08),
    transparent 70%);

    pointer-events:none;
}

/* ==========================================
   FOOTER PAPER QUOTE
========================================== */

.footer-quote{

    background:#e8e8e8;

    color:#111;

    padding:25px;

    transform:rotate(-2deg);

    position:relative;

    max-width:320px;
}

.footer-quote::before{

    content:"";

    position:absolute;

    width:70px;
    height:18px;

    background:
    rgba(255,255,255,.55);

    top:-10px;
    left:50%;

    transform:
    translateX(-50%)
    rotate(-8deg);
}

/* ==========================================
   GRAFFITI SCRATCHES ON CARDS
========================================== */

/* Note: .font-card::before is used for masking tape above.
   The graffiti scratch effect is merged into the masking tape pseudo-element
   via background-image layering below where needed. */

/* ==========================================
   VIGNETTE
========================================== */





/* ==========================================
   ARTICLE SECTION — FULL REDESIGN
========================================== */

/* Override section width for article — go full bleed container */
.article-section{
    width:100%;
    max-width:100%;
    margin:0;
    padding:0;
    background:#070707;
    border-top:1px solid #1f1f1f;
    position:relative;
}

/* Subtle top accent line */
.article-section::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:3px;
    background:linear-gradient(90deg,
        var(--accent) 0%,
        var(--orange) 33%,
        var(--blue) 66%,
        var(--purple) 100%);
}

/* Inner container — constrained but wide */
.article-wrap{
    width:min(1400px,92%);
    margin:0 auto;
    padding:80px 0 100px;
    display:grid;
    grid-template-columns:260px 1fr;
    gap:80px;
    align-items:start;
}

/* ==========================================
   TOC SIDEBAR — REDESIGNED
========================================== */

.article-toc{
    position:sticky;
    top:40px;
}

.toc-inner{
    background:#0d0d0d;
    border:1px solid #222;
    border-top:2px solid var(--accent);
    padding:28px 24px;
}

.toc-label{
    font-size:10px;
    letter-spacing:4px;
    color:var(--accent);
    margin-bottom:22px;
    font-family:'Oswald',sans-serif;
    font-weight:700;
    text-transform:uppercase;
}

.toc-nav{
    display:flex;
    flex-direction:column;
    gap:0;
}

.toc-nav a{
    color:#666;
    text-decoration:none;
    font-size:12px;
    letter-spacing:1px;
    font-family:'Oswald',sans-serif;
    font-weight:400;
    text-transform:uppercase;
    padding:11px 0;
    border-bottom:1px solid #161616;
    transition:.2s;
    display:flex;
    align-items:center;
    gap:10px;
}

.toc-nav a::before{
    content:"";
    width:0;
    height:1px;
    background:var(--accent);
    transition:.3s;
    flex-shrink:0;
}

.toc-nav a:hover{
    color:#fff;
    padding-left:6px;
}

.toc-nav a:hover::before{
    width:16px;
}

.toc-nav a:last-child{
    border-bottom:none;
}

/* ==========================================
   ARTICLE BODY — REDESIGNED
========================================== */

.article-body{
    min-width:0;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    text-rendering:optimizeLegibility;
}

/* H1 — big, loud, matches site energy */
#article-h1{
    font-size:42px;
    font-weight:700;
    letter-spacing:1.5px;
    line-height:1.15;
    color:#fff;
    text-transform:uppercase;
    margin-bottom:32px;
    font-family:'Oswald',sans-serif;
    position:relative;
    padding-bottom:28px;
}

#article-h1::after{
    content:"";
    position:absolute;
    bottom:0;
    left:0;
    width:80px;
    height:3px;
    background:var(--accent);
}

/* Intro — readable, editorial */
.article-intro{
    font-size:18px;
    line-height:1.95;
    color:#e0e0e0;
    font-weight:400;
    font-family:'Source Serif 4',Georgia,serif;
    margin-bottom:60px;
    padding:28px 32px;
    background:#0d0d0d;
    border-left:4px solid var(--accent);
    border-right:1px solid #222;
    border-top:1px solid #222;
    border-bottom:1px solid #222;
    position:relative;
}

.article-intro::before{
    content:'"';
    position:absolute;
    top:-18px;
    left:24px;
    font-size:80px;
    color:var(--accent);
    font-family:'Source Serif 4',Georgia,serif;
    line-height:1;
    opacity:.4;
}

/* H2 — section labels, brutalist */
.article-body h2{
    font-size:13px;
    font-weight:700;
    letter-spacing:4px;
    color:var(--accent);
    margin:60px 0 24px;
    text-transform:uppercase;
    font-family:'Oswald',sans-serif;
    display:flex;
    align-items:center;
    gap:16px;
}

.article-body h2::before{
    content:"";
    display:block;
    width:32px;
    height:2px;
    background:var(--accent);
    flex-shrink:0;
}

.article-body h2::after{
    content:"";
    display:block;
    flex:1;
    height:1px;
    background:#1e1e1e;
}

/* Body paragraphs — high contrast, readable */
.article-body > p{
    font-size:17px;
    line-height:1.95;
    color:#d5d5d5;
    font-weight:400;
    margin-bottom:22px;
    font-family:'Source Serif 4',Georgia,serif;
    max-width:72ch;
}

/* ==========================================
   FONT STYLE CARDS — REDESIGNED
========================================== */

.article-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:3px;
    margin:28px 0 60px;
    background:#1a1a1a;
    border:1px solid #1a1a1a;
}

.article-card{
    background:#0d0d0d;
    padding:32px 28px;
    position:relative;
    overflow:hidden;
    transition:.3s;
}

.article-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:2px;
    background:var(--accent);
}

.article-card.accent-orange::before{ background:var(--orange); }
.article-card.accent-blue::before{   background:var(--blue);   }
.article-card.accent-purple::before{ background:var(--purple); }

.article-card:hover{
    background:#111;
}

.article-card h3{
    font-size:11px;
    font-weight:700;
    letter-spacing:4px;
    text-transform:uppercase;
    font-family:'Oswald',sans-serif;
    color:var(--accent);
    margin-bottom:18px;
    display:flex;
    align-items:center;
    gap:10px;
}

.article-card:nth-child(2) h3{ color:var(--orange); }
.article-card:nth-child(3) h3{ color:var(--blue);   }
.article-card:nth-child(4) h3{ color:var(--purple); }

.article-card h3::before{
    content:"";
    width:20px;
    height:2px;
    background:currentColor;
    flex-shrink:0;
}

.article-card p{
    font-size:15px;
    line-height:1.85;
    color:#c5c5c5;
    font-weight:400;
    margin-bottom:14px;
    font-family:'Source Serif 4',Georgia,serif;
}

.article-card p:last-child{ margin-bottom:0; }

/* ==========================================
   PLATFORM GRID — REDESIGNED
========================================== */

.platform-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:3px;
    margin:28px 0 60px;
    background:#1a1a1a;
}

.platform-item{
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:28px 24px;
    background:#0d0d0d;
    transition:.25s;
    position:relative;
}

.platform-item::after{
    content:"";
    position:absolute;
    bottom:0;
    left:24px;
    right:24px;
    height:1px;
    background:#181818;
}

.platform-item:hover{
    background:#111;
}

.platform-icon{
    font-size:26px;
    line-height:1;
}

.platform-item strong{
    display:block;
    font-size:12px;
    letter-spacing:3px;
    text-transform:uppercase;
    font-family:'Oswald',sans-serif;
    color:#fff;
    font-weight:700;
}

.platform-item p{
    font-size:14px;
    line-height:1.8;
    color:#b8b8b8;
    font-weight:400;
    margin:0;
    font-family:'Source Serif 4',Georgia,serif;
}

/* ==========================================
   FAQ — REDESIGNED
========================================== */

.faq-list{
    display:flex;
    flex-direction:column;
    gap:3px;
    margin:28px 0 60px;
}

.faq-item{
    background:#0d0d0d;
    border:1px solid #1a1a1a;
    overflow:hidden;
    transition:.2s;
}

.faq-item[open]{
    border-color:#2a2a2a;
    background:#0f0f0f;
}

.faq-item summary{
    padding:22px 28px;
    font-size:15px;
    font-weight:500;
    letter-spacing:0.5px;
    color:#ccc;
    cursor:pointer;
    list-style:none;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    font-family:'Oswald',sans-serif;
    transition:.2s;
    text-transform:uppercase;
    font-size:13px;
    letter-spacing:2px;
}

.faq-item summary::-webkit-details-marker{ display:none; }

.faq-item summary::after{
    content:"＋";
    color:var(--accent);
    font-size:20px;
    font-weight:300;
    flex-shrink:0;
    line-height:1;
    transition:.2s;
}

.faq-item[open] summary{
    color:#fff;
}

.faq-item[open] summary::after{
    content:"－";
    color:var(--accent);
}

.faq-item summary:hover{ color:#fff; }

.faq-item p{
    padding:0 28px 26px;
    font-size:15px;
    line-height:1.9;
    color:#c8c8c8;
    font-weight:400;
    margin:0;
    font-family:'Source Serif 4',Georgia,serif;
    border-top:1px solid #161616;
    padding-top:20px;
}

/* ==========================================
   CLOSING — REDESIGNED
========================================== */

.article-closing{
    font-size:17px;
    line-height:1.95;
    color:#d0d0d0;
    font-weight:400;
    font-family:'Source Serif 4',Georgia,serif;
    padding:36px 40px;
    background:#0d0d0d;
    border:1px solid #222;
    border-left:4px solid var(--accent);
    position:relative;
    margin-top:8px !important;
}

.article-closing::after{
    content:"↑ USE THE TOOL";
    position:absolute;
    bottom:28px;
    right:36px;
    font-size:10px;
    letter-spacing:3px;
    color:var(--accent);
    font-family:'Oswald',sans-serif;
    font-weight:700;
    cursor:pointer;
}

/* ==========================================
   ARTICLE RESPONSIVE
========================================== */

@media(max-width:1100px){

    .article-wrap{
        grid-template-columns:200px 1fr;
        gap:50px;
    }

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

@media(max-width:900px){

    .article-wrap{
        grid-template-columns:1fr;
        gap:0;
        padding:50px 0 70px;
    }

    .article-toc{
        display:none;
    }

    .article-grid{
        grid-template-columns:1fr;
    }

    .platform-grid{
        grid-template-columns:1fr;
    }

    #article-h1{
        font-size:28px;
    }

    .article-body > p{
        max-width:100%;
    }
}

@media(max-width:768px){

    .article-wrap{
        padding:36px 0 50px;
    }

    #article-h1{
        font-size:22px;
    }

    .article-intro{
        font-size:16px;
        padding:22px 20px;
    }

    .article-body h2{
        font-size:11px;
        letter-spacing:3px;
    }

    .article-body > p{
        font-size:15px;
    }

    .article-card{
        padding:24px 20px;
    }

    .faq-item summary{
        font-size:11px;
        padding:18px 20px;
    }

    .faq-item p{
        font-size:14px;
        padding:16px 20px 20px;
    }

    .article-closing{
        font-size:15px;
        padding:24px 22px 48px;
    }
}
/* ==========================================
   ARTICLE FONT SIZE OVERRIDES
========================================== */

#article-h1{
    font-size:36px !important;
}

.article-intro{
    font-size:22px;
    line-height:2;
}

.article-body h2{
    font-size:15px;
}

.article-body > p{
    font-size:20px;
    line-height:2;
}

.article-card h3{
    font-size:13px;
}

.article-card p{
    font-size:17px;
    line-height:1.9;
}

.platform-item p{
    font-size:16px;
    line-height:1.85;
}

.platform-item strong{
    font-size:14px;
}

.faq-item summary{
    font-size:15px;
}

.faq-item p{
    font-size:17px;
    line-height:1.9;
}

.article-closing{
    font-size:20px;
    line-height:2;
}

/* Responsive overrides */
@media(max-width:900px){
    #article-h1{
        font-size:32px;
    }
    .article-intro{
        font-size:19px;
    }
    .article-body > p{
        font-size:18px;
    }
    .article-card p,
    .faq-item p,
    .article-closing{
        font-size:16px;
    }
}

@media(max-width:768px){
    #article-h1{
        font-size:26px;
    }
    .article-intro,
    .article-body > p,
    .article-closing{
        font-size:17px;
    }
    .article-card p,
    .platform-item p,
    .faq-item p{
        font-size:15px;
    }
}

/* ==========================================
   APP.JS DYNAMIC CLASSES
========================================== */



.glass-card {
    background: #0d0d0d;
    border: 1px solid #222;
    position: relative;
    padding: 25px;
    overflow: hidden;
}

.grid-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.nf-cat {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.card-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 0;
    border-top: 1px solid #1f1f1f;
    margin-top: 8px;
}

.mini {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #333;
    background: #121212;
    color: #fff;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
}

.mini.primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Load More Behavior */








/* =======================================
   STICKY INPUT BAR
======================================= */
.sticky-input-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: #e8e0d0 !important;
    border-bottom: 2px solid rgba(0,0,0,0.15) !important;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 min(5%, 70px);
    gap: 16px;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.sticky-input-bar.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.sticky-logo {
    font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 2px;
    color: #1a1209 !important;
    flex-shrink: 0;
    white-space: nowrap;
}

.sticky-input-bar textarea {
    flex: 1;
    height: 38px;
    background: rgba(255,255,255,0.6) !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
    color: #1a1209 !important;
    font-size: 20px;
    font-family: 'Special Elite', cursive;
    padding: 4px 14px;
    resize: none;
    outline: none;
    overflow: hidden;
    line-height: 30px;
}

.sticky-input-bar textarea:focus {
    border-color: rgba(0,0,0,0.3) !important;
}

.sticky-generate-btn {
    height: 38px;
    padding: 0 22px;
    background: var(--accent);
    border: none;
    color: #000;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

/* =======================================
   LAZY SHIMMER
======================================= */
.font-row.lazy-pending .font-sample {
  background: linear-gradient(
    90deg,
    #e8e4dc 25%,
    #f0ece4 50%,
    #e8e4dc 75%
  );
  background-size: 200% 100%;
  animation: shimmerRow 1.4s infinite;
  border-radius: 2px;
  color: transparent;
  height: 28px;
  width: 60%;
}

@keyframes shimmerRow {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ==========================================
   LAYOUT REDESIGN — NICKFINDER STYLE
   Uses !important only where existing rules
   have conflicting declarations above
========================================== */

/* --- FONTS GRID --- */
.fonts-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 48px !important;
    margin-top: 40px !important;
}

/* --- FONT CARD: strip all decoration --- */
.font-card,
.font-card:nth-child(1),
.font-card:nth-child(2),
.font-card:nth-child(3),
.font-card:nth-child(4),
.font-card:nth-child(5),
.font-card:nth-child(6),
.font-card:nth-child(7),
.font-card:nth-child(8) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    clip-path: none !important;
    overflow: visible !important;
    transform: none !important;
    position: relative !important;
}

.font-card:hover,
.font-card:nth-child(1):hover,
.font-card:nth-child(2):hover,
.font-card:nth-child(3):hover,
.font-card:nth-child(4):hover {
    transform: none !important;
    box-shadow: none !important;
}

.font-card::before,
.font-card::after,
.font-card:nth-child(1)::after,
.font-card:nth-child(2)::after,
.font-card:nth-child(3)::after,
.font-card:nth-child(4)::after {
    display: none !important;
    content: none !important;
}

/* --- CARD HEADER: plain text label --- */
.card-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
}



.card-header h2::after,
.card-header h2::before,
.font-card:nth-child(1) .card-header h2::after,
.font-card:nth-child(2) .card-header h2::after,
.font-card:nth-child(3) .card-header h2::after,
.font-card:nth-child(4) .card-header h2::after {
    display: none !important;
    content: none !important;
}



.badge,
.badge.orange,
.badge.blue,
.badge.purple {
    display: none !important;
}

/* --- FONT LIST: 2-col card grid --- */
.font-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    border: none !important;
    counter-reset: font-item !important;
    max-height: none !important;
    overflow: visible !important;
    transition: none !important;
}

.font-card.expanded .font-list {
    max-height: none !important;
}





/* --- FONT ROW: individual card --- */




/* Remove old ::before number — replaced by .font-row-num span */
.font-row::before {
    display: none !important;
    content: none !important;
}

/* Remove old button::after ⧉ icon */
.font-row button::after {
    content: none !important;
    display: none !important;
}

/* Glitch scanline override */
.glitch .font-row::after {
    display: none !important;
}

/* --- NUMBER BADGE --- */
.font-row-num {
    position: absolute !important;
    top: 8px !important;
    right: 12px !important;
    font-size: 11px !important;
    color: #444 !important;
    font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif !important;
    font-weight: 400 !important;
    width: auto !important;
    flex-shrink: unset !important;
    counter-increment: none !important;
}

.font-row-num::before {
    content: counter(font-item, decimal-leading-zero) !important;
}

/* --- FONT SAMPLE: centred, wraps --- */
.font-sample {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    font-size: var(--font-sample-size, 22px);
    color: #f0f0f0 !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.65 !important;
    text-align: center !important;
    padding: 0 !important;
    display: block !important;
    margin: 0 !important;
    transition: font-size 0.1s, color 0.2s !important;
}

/* --- ACTION BUTTONS: hover reveal --- */
.font-row-actions {
    display: flex !important;
    gap: 6px !important;
    position: absolute !important;
    bottom: 8px !important;
    right: 10px !important;
    opacity: 0 !important;
    transition: opacity 0.2s !important;
    margin-left: 0 !important;
    align-self: unset !important;
}

.font-row:hover .font-row-actions {
    opacity: 1 !important;
}

.btn-copy {
    height: 24px !important;
    padding: 0 10px !important;
    background: var(--accent) !important;
    color: #000 !important;
    border: none !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif !important;
    cursor: pointer !important;
    border-radius: 3px !important;
    clip-path: none !important;
    white-space: nowrap !important;
    transition: background 0.2s, color 0.2s !important;
}

.btn-copy.copied {
    background: #00c853 !important;
    color: #fff !important;
}





/* --- ODD LAST ROW: full width --- */
.font-list .font-row:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    max-width: 580px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* --- SMALL FONT FOR WRAPPER STYLES --- */
.font-row[data-style-name="Quill Strike"] .font-sample,
.font-row[data-style-name="Voltage Cage"] .font-sample,
.font-row[data-style-name="Death March"] .font-sample,
.font-row[data-style-name="Radar Lock"] .font-sample,
.font-row[data-style-name="Ancient Seal"] .font-sample,
.font-row[data-style-name="IPA Rage"] .font-sample,
.font-row[data-style-name="King Bold"] .font-sample,
.font-row[data-style-name="AK Frame"] .font-sample,
.font-row[data-style-name="Emperor"] .font-sample,
.font-row[data-style-name="Angry Kaomoji"] .font-sample,
.font-row[data-style-name="Happy Kaomoji"] .font-sample,
.font-row[data-style-name="Sad Kaomoji"] .font-sample,
.font-row[data-style-name="Cool Kaomoji"] .font-sample,
.font-row[data-style-name="Star Frame"] .font-sample,
.font-row[data-style-name="Crown Frame"] .font-sample,
.font-row[data-style-name="Warzone"] .font-sample,
.font-row[data-style-name="Iron Fist"] .font-sample,
.font-row[data-style-name="Blood Oath"] .font-sample,
.font-row[data-style-name="Bullet Trail"] .font-sample,
.font-row[data-style-name="Combat"] .font-sample {
    font-size: var(--font-sample-size, 22px);
    line-height: 1.75 !important;
}

/* --- RESPONSIVE --- */
@media(max-width: 900px) {
    .font-list {
        grid-template-columns: 1fr !important;
    }
    .font-row-actions {
        opacity: 1 !important;
    }
    .font-list .font-row:last-child:nth-child(odd) {
        grid-column: 1 !important;
        max-width: 100% !important;
    }
}

@media(max-width: 768px) {
    .font-sample {
        font-size: var(--font-sample-size, 22px);
    }
    .font-row {
        min-height: 70px !important;
        padding: 26px 14px 16px !important;
    }
}

/* ── FRAME PILLS REDESIGN ── */
.frame {
    background: transparent !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 30px !important;
    padding: 8px 20px !important;
    min-width: auto !important;
    width: auto !important;
    cursor: pointer !important;
    transition: border-color 0.2s, background 0.2s !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
}

.frame:hover {
    border-color: var(--accent) !important;
    background: rgba(215,255,0,0.05) !important;
    transform: none !important;
}

.frame.active {
    border-color: var(--accent) !important;
    background: rgba(215,255,0,0.08) !important;
    box-shadow: 0 0 14px rgba(215,255,0,0.12) !important;
}

.frame.active::before { display: none !important; }

.frame-preview {
    font-size: 14px !important;
    color: #f0f0f0 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    display: block !important;
    max-width: 260px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.frame span:last-child {
    font-size: 10px !important;
    color: #444 !important;
    font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif !important;
    letter-spacing: 1px !important;
    margin-top: 0 !important;
    opacity: 1 !important;
}

.frame-row {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    padding: 8px 0 14px !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
}

.frame-row::-webkit-scrollbar { display: none !important; }

/* ==========================================
   HOT RIGHT NOW GRID
========================================== */

#frameRow {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-template-rows: repeat(2, auto) !important;
  gap: 12px !important;
  overflow-x: unset !important;
  padding: 0 !important;
  flex-wrap: unset !important;
}

.hot-card {
  background: #111;
  border: 1px solid #242424;
  border-radius: 8px;
  padding: 22px 18px 16px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 90px;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  overflow: hidden;
  opacity: 0;
}

.hot-card:hover {
  border-color: var(--accent);
  background: #161616;
}

.hot-card.hot-copied {
  border-color: #00c853;
  background: rgba(0, 200, 83, 0.06);
}

.hot-badge {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  opacity: 0.6;
}

.hot-preview {
  font-size: 17px;
  color: #f0f0f0;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.hot-copy-hint {
  font-size: 8px;
  letter-spacing: 2px;
  color: #333;
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.2s;
}

.hot-card:hover .hot-copy-hint {
  color: var(--accent);
}

@media (max-width: 768px) {
  #frameRow {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(3, auto) !important;
  }
}

@media (max-width: 480px) {
  #frameRow {
    grid-template-columns: 1fr !important;
    grid-template-rows: unset !important;
  }
}


/* ==========================================
   TORN RECEIPT + FILM STRIP CARD STYLES
========================================== */

/* ── TORN RECEIPT BASE ── */




/* Tape strip on receipt header */




/* Receipt h2 — dark ink on cream */


/* Slight random tilt per nth-child on header only */








/* Receipt p subtitle */


/* Receipt font rows — keep clean */


/* ── FILM STRIP BASE ── */




/* Film sprocket strip — left side */


/* Sprocket holes via repeating radial-gradient */


/* Film h2 — bright on dark */


/* Film p subtitle */


/* Film font rows — slightly darker */




/* Scanline overlay on film card header */


/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  

  

  
}



/* ==========================================
   BURNT THERMAL RECEIPT — FONT ROWS
========================================== */



/* Horizontal thermal line texture */


/* Warm burnt vignette edges */


/* Font sample — warm ink color */


/* Row number — warm faded */


/* Actions z-index fix */


/* Copy button — warm receipt style */






/* Remix button — warm tint */




/* Hover state — warm lift */


/* ==========================================
   DAMAGED FILM NEGATIVE — FONT ROWS
========================================== */



/* VHS scanline texture */


/* Film grain vignette */


/* Font sample — cold white */


/* Row number — dark faded */


/* Actions z-index fix */


/* Copy button — film accent */






/* Remix button — dark film */




/* Hover state — VHS glitch */




/* ==========================================
   SHARED — remove border-radius on rows
   inside both themed cards
========================================== */



/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {
  

  
}



/* ==========================================
   BURNT THERMAL RECEIPT — FONT ROWS
   Structure, texture, color — static only
========================================== */



/* Thermal paper grain texture */


/* Torn bottom edge — dark page showing through */


/* Dotted thermal separator line above font sample */


/* Row number — warm faded ink */


/* Actions above torn edge */


/* Copy button — warm receipt ink */




/* Remix button — warm paper */


/* nth-child tilt — receipt rows */




/* ==========================================
   DAMAGED FILM NEGATIVE — FONT ROWS
   Structure, texture, color — static only
========================================== */



/* VHS scanlines — always visible subtle */


/* Film vignette edges */


/* Font sample — cold white */


/* Row number */


/* Actions */


/* Copy button */




/* Remix button */


/* ==========================================
   SHARED SPACING
========================================== */



/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {
  

  
}



/* ==========================================
   NEW SPARK REMIX BUTTON + ROW CLICK COPY
========================================== */

/* Remove old btn-copy rules — override to hidden */
.btn-copy {
  display: none !important;
}

/* Font row — clickable cursor */
.font-row {
  cursor: pointer !important;
}

/* Row copied flash */
.font-row.row-copied {
  background: rgba(215,255,0,0.06) !important;
  border-color: rgba(215,255,0,0.25) !important;
  transition: background 0.1s, border-color 0.1s !important;
}



/* ✦ NEW remix button — always visible */






/* DONE state */


/* Font row actions — always visible now */
.font-row-actions {
  opacity: 1 !important;
  position: absolute !important;
  bottom: 8px !important;
  right: 10px !important;
}

/* Receipt card remix button — warm variant */






/* Remove zigzag clip-path from ALL font rows */
.font-row,


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {
  
}



/* ==========================================
   ✦ NEW BUTTON — PERMANENT RIGHT EDGE
========================================== */

/* Font row layout — space-between for permanent right button */
.font-row {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 14px 14px 16px !important;
  gap: 10px !important;
}

/* Font sample — takes remaining space, left aligned */
.font-sample {
  flex: 1 !important;
  text-align: center !important;
  min-width: 0 !important;
  padding: 0 !important;
}

/* Actions — permanent right, no absolute position */
.font-row-actions {
  position: static !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  bottom: auto !important;
  right: auto !important;
  margin-left: auto !important;
}

/* ==========================================
   HOVER COLORS — THEME MATCHED
========================================== */

/* Default dark rows hover */


/* Receipt rows hover — warmer paper */


/* Film rows hover — cold dark tint */


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {
  .font-row {
    padding: 12px 10px 12px 12px !important;
    gap: 8px !important;
  }
}



/* ==========================================
   NOTEBOOK LINED PAPER — RECEIPT ROWS
========================================== */

/* Base notebook paper */


/* 3 ruled notebook lines via ::before */


/* Kill torn ::after completely */


/* Font sample — dark ink on paper */


/* Row number — faded ink */


/* Actions above lines */


/* ✦ NEW button — ink blue on receipt cards */






/* Notebook row hover — slightly darker warm paper */


/* Row copied flash — warm receipt */


/* ==========================================
   PERFORMANCE — SCROLL SMOOTHNESS
========================================== */

/* Reserve space for font rows — prevents CLS on font load */
.font-sample {
  min-height: 1.4em;
  contain: layout style;
}

/* Prevent section headers causing reflow */
.section-head h3,
.card-header h2,
.card-header p {
  contain: layout style;
}

/* Prevent hot cards causing CLS */
.hot-card {
  contain: layout style;
  min-height: 70px;
}

/* Contain layout reflow to individual rows */
.font-row {
  contain: layout style !important;
  will-change: auto !important;
}

/* Only promote to GPU on actual hover */
.font-row:hover {
  will-change: transform !important;
}

/* Contain font cards */
.font-card {
  contain: layout !important;
}

/* Kill mix-blend-mode on rows — major GPU drain */


/* Reduce grain animation cost */
.grain {
  will-change: transform !important;
}

/* Smooth scroll native removed for performance */
html {
  scroll-behavior: smooth !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

/* ==========================================
   HOT RIGHT NOW — LIGHTWEIGHT CSS SWAP
========================================== */

#frameRow {
  transition: opacity 0.3s ease !important;
  will-change: opacity !important;
}

#frameRow.hot-fading {
  opacity: 0 !important;
}

.hot-card {
  opacity: 1 !important;
  will-change: auto !important;
}

/* ==========================================
   PERFORMANCE — KILL ALL BOX-SHADOW PULSE
========================================== */

/* Override any existing box-shadow animations */






/* ==========================================
   ARTICLE FONT — SYSTEM SERIF FALLBACK
   Loads fast, zero CLS, same editorial feel
========================================== */

.article-intro,
.article-body > p,
.article-card p,
.platform-item p,
.faq-item p,
.article-closing {
  font-family: Georgia, 'Times New Roman', serif !important;
}

/* ==========================================
   CONTENT VISIBILITY — OFF-SCREEN SKIP
   Desktop only — see media query at bottom
========================================== */

/* ==========================================
   CLS FIX — RESERVE SPACE FOR LAZY ROWS
========================================== */

/* Reserve fixed height so lazy text load
   does not shift surrounding content */
.font-sample {
  min-height: 1.65em !important;
  display: block !important;
}

/* Prevent fonts-grid from jumping when
   content-visibility cards enter viewport */


/* Stabilize each card height estimate — desktop only, see media query at bottom */

/* ==========================================
   SCROLL PERFORMANCE
========================================== */

html {
  scroll-behavior: smooth;
}

/* DESKTOP ONLY performance hints */
@media (min-width: 769px) {
  

  .font-card {
    content-visibility: auto;
    contain-intrinsic-size: 0 1400px;
  }
}

/* MOBILE SCROLL FIX */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
    position: relative;
  }

  .font-card {
    content-visibility: visible;
    contain-intrinsic-size: none;
  }

  
}

/* FONT SAMPLE STABILITY */
.font-sample {
  min-height: 1.65em;
  contain: layout style;
}

/* Hide font-list overflow — JS controls visibility */
.font-list {
  overflow: visible !important;
  max-height: none !important;
}

/* Ensure hidden rows take no space */
.font-row[style*="display: none"] {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  min-height: 0 !important;
}

/* ==========================================
   BACKGROUND OVERLAY — TATTOO WALL VISIBLE
========================================== */

body::after {
  background: rgba(15,10,8,0.35) !important;
}

/* ==========================================
   FONT CARD — TRANSPARENT CLEAN BASE
========================================== */

.font-card,
.font-card:nth-child(1),
.font-card:nth-child(2),
.font-card:nth-child(3),
.font-card:nth-child(4),
.font-card:nth-child(5),
.font-card:nth-child(6),
.font-card:nth-child(7),
.font-card:nth-child(8) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ==========================================
   CATEGORY HEADER — PINNED FLASH SHEET
   Matches aged paper sheets in bg-pattern.png
========================================== */

.card-header {
  background: #e2d5bc !important;
  border: none !important;
  padding: 20px 22px 18px !important;
  margin-bottom: 18px !important;
  position: relative !important;
  box-shadow:
    3px 3px 0 rgba(0,0,0,0.55),
    6px 6px 0 rgba(0,0,0,0.2) !important;
  clip-path: none !important;
  transform: none !important;
}

/* Pushpin dot — top center */
.card-header::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: -6px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: var(--accent) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.6) !important;
  z-index: 2 !important;
}

/* Folded corner — bottom right */
.card-header::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 0 !important;
  height: 0 !important;
  border-style: solid !important;
  border-width: 0 0 22px 22px !important;
  border-color: transparent transparent
    rgba(0,0,0,0.25) transparent !important;
  filter: none !important;
}

/* Slight alternating tilt — pinned feel */
.font-card:nth-child(odd) .card-header {
  transform: rotate(-0.8deg) !important;
}

.font-card:nth-child(even) .card-header {
  transform: rotate(0.6deg) !important;
}

.font-card:nth-child(3n) .card-header {
  transform: rotate(-0.4deg) !important;
}

/* Category title — dark ink on aged paper */
.card-header h2 {
  font-family: 'Special Elite', cursive !important;
  font-size: 22px !important;
  color: #1a1209 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  background: none !important;
  padding: 0 !important;
  transform: none !important;
  clip-path: none !important;
  box-shadow: none !important;
  display: block !important;
  position: static !important;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.15) !important;
}

.card-header h2::after,
.card-header h2::before,
.font-card:nth-child(1) .card-header h2::after,
.font-card:nth-child(2) .card-header h2::after,
.font-card:nth-child(3) .card-header h2::after,
.font-card:nth-child(4) .card-header h2::after {
  display: none !important;
  content: none !important;
}

/* Subtitle */
.card-header p {
  font-family: 'Special Elite', cursive !important;
  font-size: 11px !important;
  color: #5a4a35 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  background: none !important;
  padding: 0 !important;
  transform: none !important;
  clip-path: none !important;
  display: block !important;
  margin-top: 4px !important;
}

/* Hide badge */
.badge,
.badge.orange,
.badge.blue,
.badge.purple {
  display: none !important;
}

/* ==========================================
   FONT LIST — FULL VISIBLE, NO HIDING
========================================== */

.font-list {
  max-height: none !important;
  overflow: visible !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

/* Show ALL rows always */
.font-list .font-row {
  display: flex !important;
}

.font-list .font-row:nth-child(n+6) {
  display: flex !important;
}



/* ==========================================
   FONT ROW — NOTEBOOK PAPER STYLE
   Clean warm white, ruled lines, dark ink
========================================== */

.font-row {
  background: #f4ede0 !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-left: 3px solid rgba(160,60,60,0.25) !important;
  border-radius: 2px !important;
  clip-path: none !important;
  position: relative !important;
  overflow: hidden !important;
  min-height: 88px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 12px 14px !important;
  gap: 8px !important;
  box-shadow: 1px 1px 0 rgba(0,0,0,0.12) !important;
  transition: background 0.15s ease !important;
  cursor: pointer !important;
}

/* Notebook ruled lines */
.font-row::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-image:
    linear-gradient(
      180deg,
      transparent 31%,
      rgba(0,0,0,0.09) 31%,
      rgba(0,0,0,0.09) 32%,
      transparent 32%,
      transparent 63%,
      rgba(0,0,0,0.09) 63%,
      rgba(0,0,0,0.09) 64%,
      transparent 64%
    ) !important;
  pointer-events: none !important;
  z-index: 0 !important;
  mix-blend-mode: normal !important;
  display: block !important;
}

/* Kill torn edge ::after on all rows */
.font-row::after {
  display: none !important;
  content: none !important;
}

/* Font sample — dark ink */
.font-sample {
  color: #1a1209 !important;
  position: relative !important;
  z-index: 1 !important;
  text-align: center !important;
  font-size: var(--font-sample-size, 22px) !important;
  width: 100% !important;
}

/* Row number */
.font-row-num {
  position: absolute !important;
  top: 6px !important;
  left: 10px !important;
  color: #9a8570 !important;
  font-size: 10px !important;
  z-index: 2 !important;
}

/* Actions */
.font-row-actions {
  position: static !important;
  opacity: 1 !important;
  display: flex !important;
  justify-content: center !important;
  z-index: 2 !important;
  margin: 0 !important;
}

/* Hover — slightly darker paper */
.font-row:hover {
  background: #ecdfc8 !important;
  transform: none !important;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.18) !important;
}

/* Row copied flash */
.font-row.row-copied {
  background: #dff0d8 !important;
  border-left-color: rgba(60,140,60,0.4) !important;
}

/* ==========================================
   REMIX BUTTON — INK STAMP ON PAPER
========================================== */









/* ==========================================
   REMOVE OLD LOAD BTN STYLES
========================================== */

.load-btn,
.load-btn.orange,
.load-btn.blue,
.load-btn.purple {
  display: none !important;
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {
  .card-header {
    padding: 16px 16px 14px !important;
  }

  .card-header h2 {
    font-size: 18px !important;
  }

  .font-card:nth-child(odd) .card-header,
  .font-card:nth-child(even) .card-header,
  .font-card:nth-child(3n) .card-header {
    transform: none !important;
  }

  .font-list {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================
   NOTEBOOK STYLE — NUCLEAR OVERRIDE
   Applies to ALL font rows in ALL categories
========================================== */



/* Blue ruled notebook lines on ALL rows */


/* Kill ALL torn/zigzag ::after on rows */


/* Font sample — dark ink on white paper */


/* Row number — faded ink */


/* Actions — centered below text */


/* Hover — warm paper darkens slightly */


/* Copy flash — green tint on paper */


/* ==========================================
   CATEGORY SPACING — ROOM BETWEEN CARDS
========================================== */

.fonts-grid {
  gap: 64px !important;
}

.font-card {
  padding-bottom: 16px !important;
}

/* Divider line between categories */
.font-card + .font-card::before {
  content: "" !important;
  display: block !important;
  width: 60px !important;
  height: 2px !important;
  background: rgba(215,255,0,0.15) !important;
  margin: 0 auto 48px !important;
  position: relative !important;
  top: -32px !important;
}


/* ==========================================
   NOTEBOOK PAPER — FINAL OVERRIDE
   Must be last rule in file to win
========================================== */

/* Notebook row — white paper */
#all-font-cards .font-row {
  background: #ffffff !important;
  border-top: 1px solid rgba(180,200,240,0.4) !important;
  border-right: 1px solid rgba(180,200,240,0.4) !important;
  border-bottom: 1px solid rgba(180,200,240,0.4) !important;
  border-left: 3px solid #c8a0a0 !important;
  border-radius: 0 !important;
  clip-path: none !important;
  min-height: 90px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 14px 16px !important;
  gap: 6px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    2px 2px 4px rgba(0,0,0,0.15) !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  transform: none !important;
  transition: background 0.15s !important;
}

/* Blue ruled lines — 2 visible lines */
#all-font-cards .font-row::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-image:
    linear-gradient(
      180deg,
      transparent 32%,
      rgba(80,120,220,0.25) 32%,
      rgba(80,120,220,0.25) 33.5%,
      transparent 33.5%,
      transparent 64%,
      rgba(80,120,220,0.25) 64%,
      rgba(80,120,220,0.25) 65.5%,
      transparent 65.5%
    ) !important;
  pointer-events: none !important;
  z-index: 0 !important;
  display: block !important;
}

/* Kill all torn edge effects */
#all-font-cards .font-row::after {
  display: none !important;
  content: none !important;
  background: none !important;
  clip-path: none !important;
  height: 0 !important;
  width: 0 !important;
}

/* Dark ink font sample on white paper */
#all-font-cards .font-row .font-sample {
  color: #111111 !important;
  position: relative !important;
  z-index: 1 !important;
  text-align: center !important;
  width: 100% !important;
  padding: 0 8px !important;
}

/* Row number — light ink */
#all-font-cards .font-row .font-row-num {
  position: absolute !important;
  top: 5px !important;
  left: 8px !important;
  color: #aaaaaa !important;
  font-size: 9px !important;
  z-index: 2 !important;
  width: auto !important;
}

/* Actions */
#all-font-cards .font-row .font-row-actions {
  position: static !important;
  opacity: 1 !important;
  z-index: 2 !important;
  display: none !important;
}

/* Hover */
#all-font-cards .font-row:hover {
  background: #f5f8ff !important;
  transform: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    3px 3px 6px rgba(0,0,0,0.18) !important;
}

/* Copy flash */
#all-font-cards .font-row.row-copied {
  background: #edfaed !important;
  border-left-color: #7ab87a !important;
}

/* ==========================================
   CARD HEADER — PINNED FLASH SHEET FIXED
========================================== */

#all-font-cards .card-header {
  background: #e8dcc8 !important;
  padding: 20px 24px 20px !important;
  margin-bottom: 12px !important;
  position: relative !important;
  clip-path: none !important;
  transform: none !important;
  border: none !important;
  box-shadow:
    3px 3px 0 rgba(0,0,0,0.4),
    5px 5px 0 rgba(0,0,0,0.15) !important;
}

/* Pushpin dot — top center */
#all-font-cards .card-header::before {
  content: "" !important;
  position: absolute !important;
  top: -7px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: var(--accent) !important;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.3) !important;
  z-index: 3 !important;
  display: block !important;
}

/* Folded corner — bottom right */
#all-font-cards .card-header::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 0 !important;
  height: 0 !important;
  border-style: solid !important;
  border-width: 0 0 28px 28px !important;
  border-color:
    transparent
    transparent
    rgba(0,0,0,0.3)
    transparent !important;
  display: block !important;
  filter: none !important;
  clip-path: none !important;
  background: none !important;
}

/* Category name — dark ink */
#all-font-cards .card-header h2 {
  font-family: 'Special Elite', cursive !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  color: #1a1209 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  background: none !important;
  padding: 0 !important;
  transform: none !important;
  clip-path: none !important;
  box-shadow: none !important;
  display: block !important;
  position: static !important;
}

#all-font-cards .card-header h2::before,
#all-font-cards .card-header h2::after {
  display: none !important;
  content: none !important;
}

/* Subtitle */
#all-font-cards .card-header p {
  font-family: 'Special Elite', cursive !important;
  font-size: 11px !important;
  color: #6b5a45 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  background: none !important;
  padding: 0 !important;
  transform: none !important;
  clip-path: none !important;
  margin-top: 4px !important;
  display: block !important;
}

/* Badge — hidden */
#all-font-cards .badge {
  display: none !important;
}

/* Category spacing */
#all-font-cards {
  gap: 72px !important;
}

/* ==========================================
   MOBILE NOTEBOOK
========================================== */

@media (max-width: 768px) {
  #all-font-cards .font-row {
    min-height: 80px !important;
    padding: 20px 10px 14px !important;
  }

  #all-font-cards .card-header {
    padding: 16px 18px 16px !important;
  }

  #all-font-cards .card-header h2 {
    font-size: 18px !important;
  }
}


/* Lazy pending rows — warm shimmer not dark */
#all-font-cards .font-row.lazy-pending {
  background: #f0ece4 !important;
}

#all-font-cards .font-row.lazy-pending::before {
  display: none !important;
}

/* ==========================================
   STYLE NAME LABEL — SEO + UX
========================================== */

.style-name-label {
  position: absolute !important;
  top: 5px !important;
  right: 8px !important;
  font-size: 8px !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #b0a090 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  line-height: 1 !important;
}

@media (max-width: 768px) {
  .style-name-label {
    font-size: 7px !important;
  }
}

/* ==========================================
   FLOAT BUTTONS — LEFT CENTER
========================================== */

.float-btns {
  position: fixed !important;
  right: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) translateX(120px) !important;
  z-index: 8000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  opacity: 0 !important;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease !important;
  pointer-events: none !important;
}

.float-btns.visible {
  opacity: 1 !important;
  transform: translateY(-50%) translateX(0) !important;
  pointer-events: all !important;
}

/* -- SCROLL TO TOP -- */
.float-top {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  background: rgba(10,10,10,0.9) !important;
  color: #fff !important;
  font-size: 18px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s, border-color 0.2s,
    transform 0.15s !important;
  flex-shrink: 0 !important;
}

.float-top:hover {
  background: rgba(30,30,30,0.95) !important;
  border-color: rgba(255,255,255,0.3) !important;
  transform: translateY(-2px) !important;
}

.float-top:active {
  transform: scale(0.92) !important;
}

/* -- REROLL BUTTON -- */
.float-reroll {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  width: 64px !important;
  padding: 12px 0 !important;
  border-radius: 12px !important;
  border: none !important;
  background: var(--accent) !important;
  color: #000 !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
  box-shadow:
    0 4px 14px rgba(215,255,0,0.35),
    0 1px 3px rgba(0,0,0,0.3) !important;
}

.reroll-icon {
  font-size: 22px !important;
  line-height: 1 !important;
  display: block !important;
}

.reroll-label {
  font-family: 'Oswald', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  line-height: 1 !important;
  display: block !important;
}

.reroll-count {
  font-family: 'Oswald', sans-serif !important;
  font-size: 7px !important;
  font-weight: 400 !important;
  letter-spacing: 1px !important;
  line-height: 1 !important;
  display: block !important;
  opacity: 0.6 !important;
}

.float-reroll:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow:
    0 8px 24px rgba(215,255,0,0.5),
    0 2px 6px rgba(0,0,0,0.3) !important;
}

.float-reroll:active {
  transform: scale(0.92) !important;
  box-shadow:
    0 2px 8px rgba(215,255,0,0.3) !important;
}

.float-reroll.spinning .reroll-icon {
  animation: rerollSpin 0.5s cubic-bezier(0.36,0.07,0.19,0.97) !important;
}

@keyframes rerollSpin {
  0%   { transform: rotate(0deg) scale(1); }
  30%  { transform: rotate(180deg) scale(0.85); }
  70%  { transform: rotate(320deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.float-reroll::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(255,255,255,0) !important;
  transition: background 0.1s !important;
  pointer-events: none !important;
  border-radius: 12px !important;
}

.float-reroll.spinning::after {
  background: rgba(255,255,255,0.25) !important;
}

/* ==========================================
   MOBILE FLOAT BUTTONS
========================================== */

@media (max-width: 768px) {
  .float-btns {
    right: 12px !important;
    gap: 8px !important;
  }

  .float-top {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }

  .float-reroll {
    width: 56px !important;
    padding: 10px 0 !important;
  }

  .reroll-icon {
    font-size: 20px !important;
  }

  .reroll-label {
    font-size: 9px !important;
  }

  .reroll-count {
    display: none !important;
  }
}


/* ==========================================
   MOBILE BOTTOM INPUT BAR — BASE
   Hidden by default on desktop
========================================== */

.mobile-bottom-bar {
  display: none;
}

.mobile-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.mobile-bottom-input {
  flex: 1;
  width: 100%;
  height: 42px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  padding: 0 36px 0 12px;
  font-size: 16px;
  font-family: 'Special Elite', cursive;
  color: #1a1209;
  outline: none;
  box-sizing: border-box;
}

.mobile-bottom-input:focus {
  border-color: rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.9);
}

.mobile-bottom-input::placeholder {
  color: #9a8570;
  font-style: italic;
}

.mobile-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  border: none;
  color: #555;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.mobile-clear-btn:active {
  background: rgba(0,0,0,0.28);
}

.mobile-generate-btn {
  height: 42px;
  padding: 0 16px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-generate-btn:active {
  transform: scale(0.96);
}

/* ==========================================
   ARTICLE SECTION — NEW RULES (override earlier defs)
========================================== */

.article-section {
  background: #0e0c0a;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 80px 0 60px;
}

.article-wrap {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 90px;
}

.toc-inner {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 24px;
}

.toc-title,
.toc-label {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
  margin: 0 0 16px;
  text-transform: uppercase;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0 4px 10px;
  border-left: 2px solid transparent;
}

.toc-nav a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.article-body {
  min-width: 0;
}

#article-h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: #f5f0e8;
  line-height: 1.25;
  margin: 0 0 32px;
  letter-spacing: -0.5px;
}

.article-intro {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(245,240,232,0.75);
  margin: 0 0 40px;
  padding: 20px 24px;
  background: rgba(215,255,0,0.04);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

.article-body h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  color: #f5f0e8;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.article-body p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(245,240,232,0.65);
  margin: 0 0 20px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0 40px;
}

.article-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}

.article-card.accent-orange::before { background: var(--orange); }
.article-card.accent-blue::before   { background: var(--blue);   }
.article-card.accent-purple::before { background: var(--purple); }

.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.16);
}

.article-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f5f0e8;
  margin: 0 0 12px;
}

.article-card p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245,240,232,0.6);
  margin: 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 40px;
}

.platform-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 18px 16px;
  transition: background 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.platform-item:hover {
  background: rgba(255,255,255,0.06);
}

.platform-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.platform-item strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 8px;
}

.platform-item p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245,240,232,0.5);
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  margin: 0 0 8px;
}

.faq-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.faq-item[open] {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

.faq-item summary {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: rgba(245,240,232,0.85);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] summary { color: #f5f0e8; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: #fff; }

.faq-item p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245,240,232,0.6);
  margin: 0;
  padding: 4px 20px 20px;
}

.article-closing {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(245,240,232,0.6);
  margin: 40px 0 0;
  padding: 24px 28px;
  border-left: 3px solid rgba(215,255,0,0.35);
  background: rgba(215,255,0,0.03);
  border-radius: 0 6px 6px 0;
}

/* ==========================================
   FOOTER — NEW RULES (override earlier defs)
========================================== */

footer {
  background: #080604;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 50px 0 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  width: min(1400px, 92%);
  margin: 0 auto;
}

.footer-left h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f5f0e8;
  margin: 0 0 10px;
}

.footer-left p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(245,240,232,0.45);
  margin: 0 0 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: rgba(245,240,232,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(245,240,232,0.35);
  display: flex;
  align-items: center;
  border-left: 2px solid rgba(215,255,0,0.2);
  padding-left: 20px;
}

/* ==========================================
   ARTICLE + FOOTER — RESPONSIVE
========================================== */

@media (max-width: 900px) {
  .article-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-toc {
    position: static;
  }

  .toc-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

  .toc-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 16px;
  }

  .article-grid {
    grid-template-columns: 1fr 1fr;
  }

  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  #article-h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 24px;
  }

  .article-intro {
    font-size: 17px;
    line-height: 1.7;
    padding: 16px 18px;
  }

  .article-body h2 {
    font-size: 20px;
    margin: 36px 0 14px;
  }

  .article-body p {
    font-size: 17px;
    line-height: 1.75;
  }

  .article-card {
    padding: 20px 16px;
  }

  .article-card h3 {
    font-size: 17px;
  }

  .article-card p {
    font-size: 16px;
    line-height: 1.65;
  }

  .platform-item strong {
    font-size: 15px;
  }

  .platform-item p {
    font-size: 15px;
    line-height: 1.6;
  }

  .faq-item summary {
    font-size: 16px;
    padding: 15px 16px;
  }

  .faq-item p {
    font-size: 16px;
    line-height: 1.7;
    padding: 4px 16px 18px;
  }

  .article-closing {
    font-size: 17px;
    padding: 20px 20px;
  }

  .toc-nav a {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .article-section {
    padding: 40px 0 30px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 0 24px;
  }

  .footer-quote {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(215,255,0,0.15);
    padding-top: 20px;
  }
}

.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  color: var(--text, #e8e8e8);
  transition: all 0.2s ease;
  min-width: 64px;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.share-btn:active {
  transform: translateY(0px) scale(0.96);
}

.share-svg {
  width: 36px;
  height: 36px;
}

.share-btn span {
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  letter-spacing: 1.5px;
  opacity: 0.7;
}

.share-btn.copied {
  border-color: #00FFD1;
  color: #00FFD1;
}

.challenge-float-btn {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: #C4A052;
  color: #0C0D0E;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 4px 20px rgba(196,160,82,0.3);
}
.challenge-float-btn.show {
  opacity: 1;
  transform: translateY(0);
}
.challenge-float-btn:hover {
  background: #d4ae5a;
}

.challenge-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.challenge-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.sword-clash-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.sword-left, .sword-right {
  font-size: 56px;
  position: absolute;
  opacity: 0;
}
.sword-left { transform: rotate(-45deg) translateX(-160px); }
.sword-right { transform: rotate(135deg) translateX(160px); }

.clash-burst {
  position: absolute;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.clash-spark {
  position: absolute;
  width: 3px;
  height: 20px;
  background: #C4A052;
  border-radius: 2px;
  opacity: 0;
  transform-origin: 50% 100%;
}

.battle-card {
  position: relative;
  width: 340px;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(32px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
  border: 1px solid rgba(196,160,82,0.35);
}
.battle-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.battle-card-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/bg-notebook.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.22) sepia(0.3);
  z-index: 0;
}

.battle-card-content {
  position: relative;
  z-index: 1;
  padding: 28px 24px;
  background: rgba(10,10,12,0.55);
}

.battle-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: #C4A052;
  margin-bottom: 18px;
}

.battle-styles-preview {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 18px;
  min-height: 60px;
}

.battle-style-row {
  font-size: 17px;
  color: #e8e8e8;
  margin: 5px 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.battle-style-row.appear {
  opacity: 1;
  transform: translateX(0);
}

.battle-message {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-bottom: 20px;
  line-height: 2;
}
.battle-message span {
  color: rgba(255,255,255,0.75);
}

.battle-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.battle-plat-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 10px 8px;
  color: rgba(255,255,255,0.6);
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.battle-plat-btn:hover {
  border-color: #C4A052;
  color: #C4A052;
}

.battle-close-btn {
  width: 100%;
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}
.battle-close-btn:hover {
  color: rgba(255,255,255,0.5);
}

.article-hero-wrap {
  width: 100%;
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.internal-links-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.internal-links-list li a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  transition: border-color 0.2s, background 0.2s;
}

.internal-links-list li a:hover {
  border-color: var(--accent);
  background: rgba(196,160,82,0.08);
}

.footer-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-badge:hover { opacity: 1; }
