/* Dragon Ball frame accents — restrained, no sticker spam. */

:root {
    --db-gold: #e8b84a;
    --db-gold-soft: rgba(232, 184, 74, 0.55);
    --db-gold-line: rgba(232, 184, 74, 0.28);
    --db-amber-glow: rgba(255, 170, 40, 0.14);
    --db-panel: rgba(10, 12, 18, 0.92);
    --db-panel-edge: rgba(255, 255, 255, 0.08);
}

/* —— Main shell: ki-gold frame —— */
div#middle {
    position: relative;
    background:
        linear-gradient(180deg, rgba(232, 184, 74, 0.06), transparent 48px),
        var(--db-panel);
    border: 1px solid var(--db-gold-line);
    border-radius: 10px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.45) inset,
        0 0 24px var(--db-amber-glow);
}

/* Seven balls as a thin bezel on the top edge (game sprites). */
div#middle::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 50%;
    z-index: 3;
    width: 168px;
    height: 22px;
    transform: translateX(-50%);
    pointer-events: none;
    background-image:
        url("../images/db-motifs/ball-1@2x.png"),
        url("../images/db-motifs/ball-2@2x.png"),
        url("../images/db-motifs/ball-3@2x.png"),
        url("../images/db-motifs/ball-4@2x.png"),
        url("../images/db-motifs/ball-5@2x.png"),
        url("../images/db-motifs/ball-6@2x.png"),
        url("../images/db-motifs/ball-7@2x.png");
    background-repeat: no-repeat;
    background-size: 22px 22px;
    background-position:
        0 0,
        24px 0,
        48px 0,
        72px 0,
        96px 0,
        120px 0,
        144px 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
    opacity: 0.92;
}

/* Soft gold hairline under the balls — ties them into the frame. */
div#middle::after {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        var(--db-gold-soft) 20%,
        var(--db-gold) 50%,
        var(--db-gold-soft) 80%,
        transparent
    );
    opacity: 0.7;
}

/* —— Side / right widgets: clean panels, one gem in the title —— */
#left .mod-tab > .module,
#left .mod-menu > .module,
#left .mod-default > .module,
#right .mod-tab > .module,
#right .mod-menu > .module,
#right .mod-default > .module,
#right .mod-blank > .module {
    position: relative;
    margin-bottom: 14px;
    background: rgba(12, 14, 20, 0.88);
    border: 1px solid var(--db-panel-edge);
    border-top: 1px solid var(--db-gold-line);
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
    overflow: visible;
}

#left .mod-tab div.header-container-1,
#right .mod-tab div.header-container-1 {
    position: relative;
    top: 0;
    left: 0;
    margin: 0;
    overflow: visible;
}

#left .mod-tab div.header-container-2,
#right .mod-tab div.header-container-2 {
    float: none;
    padding: 8px 12px 6px 36px;
}

#left .mod-tab div.header-l,
#left .mod-tab div.header-r,
#right .mod-tab div.header-l,
#right .mod-tab div.header-r {
    display: none;
}

#left .mod-tab h3.module,
#right .mod-tab h3.module,
#left h3.module,
#right h3.module {
    position: relative;
    height: auto;
    margin: 0;
    padding: 0;
    line-height: 1.35;
    background: none !important;
    color: #f0e6c8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

#left .mod-tab h3.module span.color,
#right .mod-tab h3.module span.color,
#left h3.module span.color,
#right h3.module span.color {
    color: var(--db-gold);
}

/* Single 4★ gem before each widget title */
#left .mod-tab div.header-container-2::before,
#right .mod-tab div.header-container-2::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 10px;
    width: 18px;
    height: 18px;
    background: url("../images/db-motifs/ball-4@2x.png") center / contain no-repeat;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
}

#left .mod-tab .module-5 > div[style],
#right .mod-tab .module-5 > div[style] {
    padding: 4px 8px 10px;
}

/* Search Character uses mod-default — radar as the section gem */
#right .mod-default > .module {
    padding-top: 4px;
}

#right .mod-default h3.module {
    padding: 8px 12px 6px 36px !important;
}

#right .mod-default h3.module::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 10px;
    width: 18px;
    height: 18px;
    background: url("../images/db-motifs/radar@2x.png") center / contain no-repeat;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
}

#right .mod-default span.module-2,
#right .mod-default span.module-3 {
    background: none !important;
    padding: 0 !important;
    display: inline;
}

/* —— Top nav: gold hover already exists; align border to palette —— */
div#header #menu a.level1 {
    border-color: rgba(232, 184, 74, 0.35);
}

div#header #menu a.level1:hover,
div#header #menu li.active a.level1,
div#header #menu li.current a.level1 {
    border-color: var(--db-gold);
    box-shadow: 0 0 12px var(--db-amber-glow);
}

/* —— Footer: same language as the shell —— */
div#footer {
    border: 1px solid var(--db-gold-line);
    box-shadow: 0 0 16px var(--db-amber-glow);
}

@media (max-width: 640px) {
    div#middle::before {
        width: 140px;
        height: 18px;
        background-size: 18px 18px;
        background-position:
            0 0,
            20px 0,
            40px 0,
            60px 0,
            80px 0,
            100px 0,
            120px 0;
    }
}
