@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@400;500;600;700;800&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css");

@font-face {
    font-family: "NeoDunggeunmo";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.3/NeoDunggeunmo.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.rad-archive,
.rad-archive * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.rad-archive {
    --rad-ink: #24242c;
    --rad-paper: #f4f0e6;
    --rad-panel: #fffdf8;
    --rad-panel-2: #f8f4ea;
    --rad-line: rgba(36, 36, 44, 0.15);
    --rad-muted: #706d66;
    --rad-violet: #5b4b9a;
    --rad-teal: #2f7a70;
    --rad-red: #d84c58;
    --rad-yellow: #e8b84b;
    max-width: 1000px;
    margin: 0 auto;
    color: var(--rad-ink);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
}

.rad-hero,
.rad-filter,
.rad-section,
.rad-detail {
    border: 1px solid var(--rad-line);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(36, 36, 44, 0.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(36, 36, 44, 0.035) 1px, transparent 1px),
        var(--rad-panel);
    background-size: 18px 18px;
    box-shadow: 0 12px 28px rgba(20, 22, 28, 0.07);
}

.rad-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding: 24px;
    border-top: 4px solid var(--rad-violet);
}

.rad-hero p,
.rad-section__head p,
.rad-detail__body > p:first-child {
    margin: 0 0 8px;
    color: var(--rad-yellow);
    font-family: "NeoDunggeunmo", "IBM Plex Sans KR", sans-serif;
    font-size: 12px;
}

.rad-hero h1,
.rad-section__head h2,
.rad-detail h1 {
    margin: 0;
    font-family: "IBM Plex Sans KR", Pretendard, sans-serif;
    line-height: 1.18;
    word-break: keep-all;
}

.rad-hero h1 {
    max-width: 680px;
    font-size: clamp(30px, 5vw, 46px);
}

.rad-hero span {
    display: block;
    max-width: 680px;
    margin-top: 10px;
    color: var(--rad-muted);
    font-size: 15px;
    line-height: 1.7;
    word-break: keep-all;
}

.rad-hero dl {
    display: grid;
    grid-template-columns: repeat(3, 84px);
    gap: 8px;
    margin: 0;
}

.rad-hero dl div {
    min-height: 70px;
    padding: 12px;
    border: 1px solid var(--rad-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
}

.rad-hero dt {
    color: var(--rad-violet);
    font-family: "NeoDunggeunmo", "IBM Plex Sans KR", sans-serif;
    font-size: 11px;
}

.rad-hero dd {
    margin: 6px 0 0;
    font-family: "IBM Plex Sans KR", Pretendard, sans-serif;
    font-size: 24px;
    font-weight: 800;
}

.rad-filter {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(130px, 1fr)) auto auto;
    gap: 10px;
    align-items: end;
    margin-top: 14px;
    padding: 14px;
}

.rad-filter label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.rad-filter span {
    color: var(--rad-muted);
    font-size: 12px;
    font-weight: 800;
}

.rad-filter input,
.rad-filter select {
    width: 100%;
    min-width: 0;
    height: 42px;
    border: 1px solid var(--rad-line);
    border-radius: 8px;
    background: #fff;
    color: var(--rad-ink);
    font: 700 14px/1 Pretendard, sans-serif;
}

.rad-filter input {
    padding: 0 12px;
}

.rad-filter select {
    padding: 0 8px;
}

.rad-filter button,
.rad-filter a {
    display: inline-grid;
    place-items: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.rad-filter button {
    border: 0;
    background: var(--rad-ink);
    color: #fff;
    cursor: pointer;
}

.rad-filter a {
    border: 1px solid var(--rad-line);
    background: #fff;
    color: var(--rad-ink);
}

.rad-section {
    margin-top: 14px;
    padding: 20px;
}

.rad-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.rad-section__head h2 {
    font-size: 24px;
}

.rad-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.rad-platform-card,
.rad-game-list a {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.rad-platform-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    min-height: 116px;
    padding: 12px;
    border: 1px solid var(--rad-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.rad-platform-card:hover,
.rad-game-list a:hover {
    transform: translateY(-2px);
    border-color: rgba(91, 75, 154, 0.55);
    box-shadow: 0 10px 20px rgba(28, 30, 38, 0.09);
}

.rad-platform-card__media,
.rad-detail__media {
    display: grid;
    place-items: center;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(232, 184, 75, 0.15) 1px, transparent 1px),
        linear-gradient(0deg, rgba(232, 184, 75, 0.11) 1px, transparent 1px),
        #171820;
    background-size: 16px 16px;
    overflow: hidden;
}

.rad-platform-card__media {
    width: 74px;
    height: 74px;
}

.rad-platform-card__media img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.rad-platform-card__media b,
.rad-detail__media b,
.rad-game-list b {
    color: var(--rad-yellow);
    font-family: "NeoDunggeunmo", "IBM Plex Sans KR", sans-serif;
}

.rad-platform-card__body {
    display: grid;
    align-content: center;
    gap: 7px;
    min-width: 0;
}

.rad-platform-card em {
    color: var(--rad-violet);
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}

.rad-platform-card strong,
.rad-game-list strong {
    font-family: "IBM Plex Sans KR", Pretendard, sans-serif;
    font-size: 17px;
    line-height: 1.32;
    word-break: keep-all;
}

.rad-platform-card span,
.rad-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.rad-platform-card i,
.rad-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(91, 75, 154, 0.2);
    border-radius: 999px;
    background: #f2effa;
    color: var(--rad-violet);
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}

.rad-game-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}

.rad-game-list a {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--rad-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.rad-game-list img,
.rad-game-list b {
    width: 48px;
    height: 64px;
    border-radius: 6px;
    background: #171820;
}

.rad-game-list img {
    object-fit: cover;
}

.rad-game-list b {
    display: grid;
    place-items: center;
    font-size: 10px;
}

.rad-game-list span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rad-game-list em {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--rad-muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.rad-detail {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    border-top: 4px solid var(--rad-teal);
}

.rad-detail__media {
    align-self: start;
    min-height: 260px;
    padding: 20px;
}

.rad-detail__media img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
}

.rad-detail__media b {
    font-size: 28px;
}

.rad-detail h1 {
    font-size: clamp(30px, 5vw, 46px);
}

.rad-badges {
    margin: 14px 0;
}

.rad-summary,
.rad-empty {
    color: var(--rad-muted);
    line-height: 1.75;
    word-break: keep-all;
}

.rad-detail dl {
    display: grid;
    gap: 0;
    margin: 18px 0 0;
    border-top: 1px solid var(--rad-line);
}

.rad-detail dl div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--rad-line);
}

.rad-detail dt {
    color: var(--rad-muted);
    font-weight: 900;
}

.rad-detail dd {
    margin: 0;
    font-weight: 900;
    word-break: keep-all;
}

.rad-empty {
    margin: 0;
    padding: 20px;
    border: 1px dashed var(--rad-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    text-align: center;
}

@media (max-width: 860px) {
    .rad-archive {
        padding: 0 10px;
    }

    .rad-hero,
    .rad-detail {
        grid-template-columns: 1fr;
    }

    .rad-hero dl {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rad-filter {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .rad-hero,
    .rad-filter,
    .rad-section,
    .rad-detail {
        padding: 14px;
    }

    .rad-hero dl,
    .rad-filter,
    .rad-platform-card,
    .rad-detail dl div {
        grid-template-columns: 1fr;
    }

    .rad-platform-card__media {
        width: 100%;
        height: 86px;
    }
}
