.phlo-tool {
    display: grid;
    gap: 18px;
}

.phlo-hero,
.phlo-panel,
.phlo-links,
.phlo-sprite-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(50, 32, 19, .96), rgba(14, 22, 22, .98));
    box-shadow: var(--shadow);
}

.phlo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 18px;
    padding: 20px;
    border-radius: 8px;
}

.phlo-hero-copy h2,
.phlo-section-heading h2,
.phlo-answer h2 {
    margin: 0;
    color: #fff;
    line-height: 1.1;
}

.phlo-hero-copy h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.phlo-lede {
    max-width: 790px;
    margin: 14px 0 0;
    color: var(--text);
    font-size: 16px;
}

.phlo-stat-strip,
.phlo-links,
.phlo-button-row,
.phlo-build-tabs,
.phlo-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.phlo-stat-strip {
    margin-top: 16px;
}

.phlo-stat-strip span,
.phlo-links a,
.phlo-button-row button,
.phlo-build-tabs button,
.phlo-progress button {
    border: 1px solid rgba(238, 117, 55, .34);
    border-radius: 6px;
    background: rgba(238, 117, 55, .12);
    color: #ffd0a8;
}

.phlo-stat-strip span {
    padding: 7px 10px;
    font-weight: 750;
}

.phlo-sprite-card {
    margin: 0;
    padding: 16px;
    border-radius: 8px;
}

.phlo-sprite-stage {
    min-height: 178px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 88%, rgba(238, 117, 55, .35), transparent 54%),
        linear-gradient(180deg, rgba(101, 168, 255, .12), rgba(8, 16, 13, .92));
}

.phlo-sprite-stage img {
    width: 28%;
    max-width: 102px;
    image-rendering: pixelated;
}

.phlo-sprite-stage img:last-child {
    width: 42%;
    max-width: 150px;
}

.phlo-sprite-card figcaption {
    margin-top: 10px;
    color: var(--muted);
}

.phlo-links,
.phlo-panel {
    border-radius: 8px;
    padding: 16px;
}

.phlo-links a {
    padding: 7px 10px;
    font-weight: 800;
}

.phlo-links a:hover,
.phlo-button-row button:hover,
.phlo-button-row button.is-active,
.phlo-build-tabs button:hover,
.phlo-build-tabs button.is-active,
.phlo-progress button:hover {
    background: #ee7537;
    color: #10110d;
}

.phlo-answer {
    display: grid;
    gap: 14px;
}

.phlo-move-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.phlo-move-cards article,
.phlo-build-output,
.phlo-type-grid div,
.phlo-trap-list div,
.phlo-boss-grid div,
.phlo-check-grid label {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 16, 13, .6);
}

.phlo-move-cards article {
    padding: 14px;
}

.phlo-move-cards span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ee7537;
    color: #10110d;
    font-weight: 900;
}

.phlo-move-cards strong,
.phlo-move-cards em {
    display: block;
}

.phlo-move-cards strong {
    margin-top: 10px;
    color: #fff;
    font-size: 18px;
}

.phlo-move-cards em {
    margin-top: 3px;
    color: #8fc7ff;
    font-style: normal;
    font-weight: 800;
}

.phlo-move-cards p,
.phlo-panel p {
    color: var(--muted);
}

.phlo-section-heading {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.phlo-build-tabs button,
.phlo-button-row button,
.phlo-progress button {
    min-height: 36px;
    padding: 7px 11px;
    cursor: pointer;
}

.phlo-build-output {
    margin-top: 12px;
    padding: 14px;
}

.phlo-build-output h3 {
    margin: 0 0 10px;
    color: #fff;
}

.phlo-build-output ul {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--text);
}

.phlo-controls {
    display: grid;
    gap: 10px;
}

.phlo-controls label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 800;
}

.phlo-controls input {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #08100d;
    color: #fff;
    padding: 8px 10px;
}

.phlo-count {
    margin: 12px 0 8px;
    color: #ffd0a8;
    font-weight: 800;
}

.phlo-table-wrap {
    overflow-x: auto;
}

.phlo-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

.phlo-table th,
.phlo-table td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.phlo-table th {
    color: #fff;
}

.phlo-table td {
    color: var(--text);
}

.phlo-table small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.phlo-grid,
.phlo-type-grid,
.phlo-trap-list,
.phlo-boss-grid,
.phlo-check-grid {
    display: grid;
    gap: 12px;
}

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

.phlo-type-grid,
.phlo-trap-list,
.phlo-boss-grid,
.phlo-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phlo-type-grid div,
.phlo-trap-list div,
.phlo-boss-grid div {
    padding: 12px;
}

.phlo-type-grid strong,
.phlo-trap-list strong,
.phlo-boss-grid strong,
.phlo-check-grid strong {
    display: block;
    color: #fff;
}

.phlo-type-grid span,
.phlo-trap-list span,
.phlo-boss-grid span,
.phlo-check-grid em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
}

.phlo-check-grid label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
}

.phlo-check-grid input {
    margin-top: 3px;
    accent-color: #ee7537;
}

.phlo-progress {
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    color: #ffd0a8;
    font-weight: 800;
}

.phlo-faq details {
    border-top: 1px solid var(--line);
    padding: 12px 0;
}

.phlo-faq summary {
    cursor: pointer;
    color: #fff;
    font-weight: 850;
}

.phlo-faq p {
    margin-bottom: 0;
}

@media (max-width: 920px) {
    .phlo-hero,
    .phlo-grid {
        grid-template-columns: 1fr;
    }

    .phlo-move-cards,
    .phlo-type-grid,
    .phlo-trap-list,
    .phlo-boss-grid,
    .phlo-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .phlo-hero,
    .phlo-panel,
    .phlo-links,
    .phlo-sprite-card {
        padding: 14px;
    }

    .phlo-move-cards,
    .phlo-type-grid,
    .phlo-trap-list,
    .phlo-boss-grid,
    .phlo-check-grid {
        grid-template-columns: 1fr;
    }

    .phlo-build-tabs button,
    .phlo-button-row button {
        flex: 1 1 120px;
    }

    .phlo-sprite-stage {
        min-height: 150px;
    }
}
