/* ---------------------------------------------------------------------------
   Development page (dev.php): the hub's joining rule and the Launcherino
   showcase. Same card language as the rules page (styles.css .rules-card).
   --------------------------------------------------------------------------- */
.dev {
    max-width: 1020px;
    margin: 0 auto;
    padding: 12px 12px 8px;
    color: #fff;
    text-align: left;
}

.dev-card {
    box-sizing: border-box;
    margin: 0 0 14px;
    padding: 18px 20px;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(130, 91, 23, .55);
    border-radius: 6px;
}

.dev-card h3,
.dev-section {
    margin: 0 0 10px;
    font-size: 1.05em;
    font-weight: bold;
    color: #ffb545;
    letter-spacing: .3px;
    line-height: 1.3;
}

.dev-section {
    margin: 22px 0 12px;
    font-size: 1.15em;
    text-align: center;
}

.dev-card h3 .fa {
    color: #ff9200;
    margin-right: 4px;
}

.dev a:not(.hub-btn) {
    color: #ffb545;
    text-decoration: none;
}

.dev a:not(.hub-btn):hover {
    color: #ffd08a;
}

.dev strong {
    color: #fff;
}

/* Intro: three points */
.dev-intro {
    border-color: rgba(255, 146, 0, .6);
}

.dev-points,
.dev-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dev-points li,
.dev-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 10px;
    font-size: .95em;
    line-height: 1.5;
    color: #d6d6d6;
}

.dev-points li:last-child,
.dev-steps li:last-child {
    margin-bottom: 0;
}

.dev-points .fa {
    flex: 0 0 22px;
    margin-top: 3px;
    font-size: 1.15em;
    color: #ff9200;
    text-align: center;
}

.dev-points .dev-warn {
    padding: 10px 12px;
    border-left: 3px solid #ff9200;
    background: rgba(255, 146, 0, .08);
    border-radius: 0 4px 4px 0;
    color: #ffd9a0;
}

.dev-points .dev-warn .fa {
    color: #ff5a3c;
}

/* How to join */
.dev-step-n {
    flex: 0 0 26px;
    height: 26px;
    line-height: 24px;
    box-sizing: border-box;
    border: 1px solid #ff9200;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    font-size: .9em;
    color: #ffb545;
}

.dev-steps li > span:last-child {
    padding-top: 2px;
}

.dev-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 16px;
}

/* Hero */
.dev-hero {
    margin: 26px 0 16px;
    padding: 26px 16px;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(255, 146, 0, .14) 0%, rgba(0, 0, 0, .5) 70%);
    border-top: 1px solid rgba(130, 91, 23, .55);
    border-bottom: 1px solid rgba(130, 91, 23, .55);
}

.dev-hero-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.6em;
    line-height: 1.1;
    color: #ffc94a;
    letter-spacing: 1px;
    text-shadow: 0 0 18px rgba(255, 146, 0, .45), 2px 2px 6px #000;
}

.dev-hero p {
    margin: 8px auto 0;
    max-width: 640px;
    font-size: 1.05em;
    line-height: 1.5;
    color: #e2e2e2;
}

/* Feature grid */
.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.dev-feature {
    box-sizing: border-box;
    padding: 16px;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(130, 91, 23, .45);
    border-radius: 6px;
    transition: border-color .12s, transform .12s;
}

.dev-feature:hover {
    border-color: #ff9200;
    transform: translateY(-1px);
}

.dev-feature .fa {
    font-size: 1.4em;
    color: #ff9200;
}

.dev-feature h4 {
    margin: 8px 0 6px;
    font-size: .95em;
    font-weight: bold;
    color: #ffb545;
}

.dev-feature p {
    margin: 0;
    font-size: .85em;
    line-height: 1.45;
    color: #cfcfcf;
}

/* Screenshots */
.dev-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
}

.dev-shot {
    margin: 0;
    padding: 8px;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(130, 91, 23, .45);
    border-radius: 6px;
}

.dev-shot img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: #0a0805;
    border-radius: 3px;
}

.dev-shot-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 190px;
    border: 1px dashed rgba(255, 146, 0, .5);
    border-radius: 3px;
    background: repeating-linear-gradient(45deg, rgba(255, 146, 0, .04) 0 10px, rgba(0, 0, 0, 0) 10px 20px);
    color: #c9a26a;
    font-size: .9em;
    text-align: center;
}

.dev-shot-soon .fa {
    font-size: 2em;
    color: rgba(255, 146, 0, .6);
}

.dev-shot figcaption {
    margin-top: 6px;
    font-size: .85em;
    color: #d6d6d6;
    text-align: center;
}

/* For players / for server owners */
.dev-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
}

.dev-cols .dev-card {
    margin: 0;
}

.dev-list {
    margin: 0;
    padding: 0 0 0 1.2em;
    font-size: .9em;
    line-height: 1.7;
    color: #d6d6d6;
}

.dev-list li::marker {
    color: #ff9200;
}

.dev-muted {
    color: #9a9a9a;
    font-size: .9em;
}

/* How it works: owner -> server -> hub -> launcher */
.dev-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-bottom: 22px;
}

.dev-node {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 10px;
    background: rgba(0, 0, 0, .5);
    border: 1px solid rgba(255, 146, 0, .55);
    border-radius: 6px;
    text-align: center;
}

.dev-node .fa {
    font-size: 1.6em;
    color: #ff9200;
}

.dev-node strong {
    color: #ffb545;
    font-size: .95em;
}

.dev-node span {
    font-size: .8em;
    line-height: 1.4;
    color: #cfcfcf;
}

.dev-arrow {
    flex: 0 0 34px;
    position: relative;
}

.dev-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 4px;
    right: 10px;
    border-top: 2px solid #ff9200;
}

.dev-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 4px;
    margin-top: -6px;
    border: 6px solid transparent;
    border-left: 8px solid #ff9200;
    border-right: 0;
}

@media (max-width: 1024px) {
    .dev {
        padding: 10px 8px 6px;
    }

    .dev-card {
        padding: 16px 14px;
    }
}

@media (max-width: 720px) {
    .dev-cols {
        grid-template-columns: 1fr;
    }

    .dev-flow {
        flex-direction: column;
        align-items: stretch;
    }

    .dev-arrow {
        flex: 0 0 30px;
    }

    .dev-arrow::before {
        top: 4px;
        bottom: 10px;
        left: 50%;
        right: auto;
        border-top: 0;
        border-left: 2px solid #ff9200;
    }

    .dev-arrow::after {
        top: auto;
        bottom: 4px;
        right: auto;
        left: 50%;
        margin: 0 0 0 -5px;
        border: 6px solid transparent;
        border-top: 8px solid #ff9200;
        border-bottom: 0;
    }

    .dev-hero-name {
        font-size: 2em;
    }

    .dev-shot img,
    .dev-shot-soon {
        height: auto;
        min-height: 150px;
    }
}
