.tmf-home {
    --tmf-home-bg: #181818;
    --tmf-home-shell: #262626;
    --tmf-home-panel: #202020;
    --tmf-home-text: #dedede;
    --tmf-home-muted: #999;
    --tmf-home-line: #414141;
    --tmf-home-red: #f05454;
    --tmf-home-cream: #f4efe6;
    --tmf-home-shadow: 0 10px 28px rgba(0,0,0,.28);
    max-width: 1200px;
    margin: 30px auto;
    padding: 25px;
    background: var(--tmf-home-shell);
    color: var(--tmf-home-text);
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,.3);
}

.tmf-home *, .tmf-home *::before, .tmf-home *::after { box-sizing: border-box; }
.tmf-home a { color: inherit; }
.tmf-home-kicker { color: var(--tmf-home-red); font-size: .71rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.tmf-home-section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 46px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--tmf-home-red); }
.tmf-home-section-head h2 { margin: 5px 0 0; padding-bottom: 0; border-bottom: 0; color: var(--tmf-home-red); font-size: 1.95rem; line-height: 1.05; }
.tmf-home-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tmf-home-btn { display: inline-block; padding: 11px 16px; border-radius: 5px; font-weight: 700; text-decoration: none; transition: transform .2s ease, filter .2s ease; }
.tmf-home-btn--primary { background: var(--tmf-home-red); color: #fff !important; }
.tmf-home-btn--secondary { border: 1px solid #666; background: #252525; color: #eee !important; }
.tmf-home-btn:hover, .tmf-home-btn:focus-visible { transform: translateY(-2px); filter: brightness(1.08); }
.tmf-home-text-link { color: #ddd !important; font-size: .82rem; font-weight: 800; text-decoration: none; border-bottom: 1px solid #777; padding-bottom: 2px; }
.tmf-home-text-link:hover, .tmf-home-text-link:focus-visible { color: var(--tmf-home-red) !important; border-color: var(--tmf-home-red); }
.tmf-home-type-chip { display: inline-block; background: var(--tmf-home-cream); color: #111; padding: 5px 7px; border-radius: 3px; font-size: .64rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.tmf-home-source-chip { display: inline-block; color: #e0dada; border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.16); padding: 4px 7px; border-radius: 999px; font-size: .68rem; }
.tmf-home-meta { font-size: .74rem; color: #818181; }
.tmf-home-empty { padding: 22px; border: 1px solid var(--tmf-home-line); border-radius: 8px; background: #202020; color: #999; }
.tmf-home-empty p { margin: 0; }
.tmf-home-empty--compact { grid-column: 1 / -1; }

/* Hero */
.tmf-home-hero { position: relative; min-height: 365px; display: flex; align-items: center; overflow: hidden; border-radius: 8px; border: 1px solid var(--tmf-home-line); background: linear-gradient(90deg,rgba(14,14,14,.98),rgba(14,14,14,.84) 54%,rgba(14,14,14,.34)), url('/assets/images/home/home-hero.webp') center / cover no-repeat; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.tmf-home-hero::before { content: ""; position: absolute; inset: 0; border-top: 3px solid var(--tmf-home-red); pointer-events: none; }
.tmf-home-hero-copy { position: relative; z-index: 2; max-width: 690px; padding: 43px; }
.tmf-home-hero-copy h1 { font-size: 2.9rem; line-height: 1.03; margin: 8px 0 15px; color: #fff; letter-spacing: -.025em; }
.tmf-home-hero-copy p { font-size: 1.04rem; line-height: 1.72; color: #d0d0d0; margin: 0 0 22px; max-width: 625px; }

/* Magic Digest */
.tmf-home-digest { display: grid; grid-template-columns: 1.48fr .92fr; gap: 15px; }
.tmf-home-digest-lead { display: block; min-height: 386px; text-decoration: none; color: inherit; cursor: pointer; position: relative; overflow: hidden; border: 1px solid #4d3d3d; border-radius: 8px; background: radial-gradient(circle at 70% 20%,#352727,#111 60%); box-shadow: var(--tmf-home-shadow); }
.tmf-home-digest-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .18s ease, transform .28s ease; transform: scale(1.015); }
.tmf-home-digest-lead.is-text-only .tmf-home-digest-image { display: none; }
.tmf-home-digest-shade { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(12,12,12,.98),rgba(12,12,12,.58) 54%,rgba(12,12,12,.18)); pointer-events: none; }
.tmf-home-digest-body { position: absolute; left: 23px; right: 23px; bottom: 21px; z-index: 2; transition: opacity .16s ease, transform .16s ease; }
.tmf-home-digest-lead.is-switching .tmf-home-digest-image { opacity: .2; transform: scale(1.03); }
.tmf-home-digest-lead.is-switching .tmf-home-digest-body { opacity: .18; transform: translateY(4px); }
.tmf-home-chip-row { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.tmf-home-digest-lead h3 { font-size: 1.76rem; line-height: 1.15; color: #fff; margin: 9px 0; }
.tmf-home-digest-lead h3 a { color: #fff; text-decoration: none; }
.tmf-home-digest-lead:focus-visible { outline: 2px solid var(--tmf-home-red); outline-offset: 3px; }
.tmf-home-digest-lead p { color: #c1c1c1; line-height: 1.55; margin: 0 0 12px; max-width: 720px; }
.tmf-home-digest-side { border-top: 1px solid #4d3d3d; }
.tmf-home-digest-wire { display: grid; text-decoration: none; color: inherit; grid-template-columns: 102px 1fr; gap: 14px; padding: 15px 10px 15px 0; border-bottom: 1px solid #4d3d3d; transition: background .16s ease, padding-left .16s ease, border-color .16s ease; }
.tmf-home-digest-wire:hover, .tmf-home-digest-wire:focus-visible, .tmf-home-digest-wire.is-active { background: linear-gradient(90deg,rgba(240,84,84,.095),rgba(240,84,84,0)); padding-left: 10px; border-bottom-color: #654747; }
.tmf-home-digest-wire:focus-visible { outline: 2px solid var(--tmf-home-red); outline-offset: -2px; }
.tmf-home-digest-wire-label { color: var(--tmf-home-red); font-size: .67rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.tmf-home-digest-wire h3 { font-size: .98rem; line-height: 1.3; margin: 0 0 5px; color: #efefef; }
.tmf-home-digest-wire h3 a { color: inherit; text-decoration: none; }
.tmf-home-digest-wire p { font-size: .81rem; line-height: 1.42; color: #969696; margin: 0; }
.tmf-home-digest-source { margin-top: 7px; color: #747474; font-size: .72rem; }
.tmf-home-digest-wire:hover h3, .tmf-home-digest-wire:focus-visible h3, .tmf-home-digest-wire.is-active h3 { color: #fff; }
.tmf-home-digest-cta, .tmf-home-forge-footer { margin-top: 14px; display: flex; justify-content: flex-end; }

/* Latest from the Forge */
.tmf-home-forge-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.tmf-home-forge-item { position: relative; padding: 18px 18px 44px; border: 1px solid var(--tmf-home-line); border-radius: 7px; background: linear-gradient(180deg,#252525,#202020); min-height: 180px; overflow: hidden; }
.tmf-home-forge-item::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tmf-home-red); opacity: .75; }
.tmf-home-forge-type { color: var(--tmf-home-red); font-size: .66rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 9px; }
.tmf-home-forge-item h3 { font-size: 1.05rem; line-height: 1.3; margin: 0 0 8px; color: #eee; }
.tmf-home-forge-item h3 a { color: inherit; text-decoration: none; }
.tmf-home-forge-item h3 a:hover, .tmf-home-forge-item h3 a:focus-visible { color: #fff; }
.tmf-home-forge-item p { font-size: .83rem; line-height: 1.48; margin: 0; color: #9a9a9a; }
.tmf-home-forge-meta { position: absolute; left: 18px; bottom: 16px; font-size: .72rem; color: #747474; }

/* Explore */
.tmf-home-explore-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.tmf-home-explore-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 282px; padding: 18px; border: 1px solid #4b4b4b; border-radius: 14px; overflow: hidden; isolation: isolate; text-decoration: none; color: inherit; background: linear-gradient(180deg,#262626,#1e1e1e); box-shadow: 0 10px 24px rgba(0,0,0,.18); transition: transform .22s ease,border-color .22s ease,box-shadow .22s ease; --card-pos:center; --card-shade-top:rgba(10,10,10,.36); --card-shade-bottom:rgba(10,10,10,.68); --card-filter:saturate(.92) brightness(.90); --card-filter-hover:saturate(1.02) brightness(.97); --content-bg-top:rgba(12,12,12,.24); --content-bg-bottom:rgba(12,12,12,.56); }
.tmf-home-explore-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(180deg,var(--card-shade-top),var(--card-shade-bottom)), var(--card-bg); background-size: cover; background-position: var(--card-pos); transform: scale(1.02); transition: transform .28s ease,filter .28s ease,opacity .28s ease; filter: var(--card-filter); opacity: .99; }
.tmf-home-explore-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,rgba(18,18,18,.03),rgba(18,18,18,.28)), radial-gradient(circle at 86% 14%,rgba(240,84,84,.12),transparent 32%); }
.tmf-home-explore-card:hover, .tmf-home-explore-card:focus-visible { transform: translateY(-6px); border-color: #6d5353; box-shadow: 0 18px 36px rgba(0,0,0,.34); outline: none; }
.tmf-home-explore-card:hover::before, .tmf-home-explore-card:focus-visible::before { transform: scale(1.06); filter: var(--card-filter-hover); }
.tmf-home-explore-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tmf-home-explore-icon { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: rgba(22,22,22,.58); backdrop-filter: blur(2px); color: var(--tmf-home-red); font-size: 1.28rem; font-weight: 900; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.tmf-home-explore-kicker { display: inline-block; padding: 5px 8px; border-radius: 999px; background: rgba(18,18,18,.62); border: 1px solid rgba(255,255,255,.12); color: #d6c5c5; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tmf-home-explore-content { margin-top: auto; padding: 14px 14px 12px; border-radius: 12px; background: linear-gradient(180deg,var(--content-bg-top),var(--content-bg-bottom)); border: 1px solid rgba(255,255,255,.06); backdrop-filter: blur(1.5px); box-shadow: inset 0 1px 0 rgba(255,255,255,.02); }
.tmf-home-explore-content h3 { margin: 0 0 10px; color: #fff; font-size: 1.08rem; line-height: 1.25; }
.tmf-home-explore-content p { font-size: .84rem; line-height: 1.55; color: #d0d0d0; margin: 0; max-width: 28ch; }
.tmf-home-explore-footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #c7c7c7; font-size: .75rem; font-weight: 600; }
.tmf-home-explore-arrow { color: var(--tmf-home-red); font-size: 1.05rem; transition: transform .18s ease,color .18s ease; }
.tmf-home-explore-card:hover .tmf-home-explore-arrow, .tmf-home-explore-card:focus-visible .tmf-home-explore-arrow { transform: translateX(4px); color: #fff; }
.tmf-home-explore-card--search { --card-bg:url('/assets/images/home/explore-card-search.webp'); --card-pos:62% center; --card-shade-top:rgba(10,10,10,.28); --card-shade-bottom:rgba(10,10,10,.58); --card-filter:saturate(.92) brightness(.96); --card-filter-hover:saturate(1.03) brightness(1.02); }
.tmf-home-explore-card--releases { --card-bg:url('/assets/images/home/explore-releases.webp'); --card-pos:center; --content-bg-top:rgba(10,10,10,.34); --content-bg-bottom:rgba(10,10,10,.66); }
.tmf-home-explore-card--secretlair { --card-bg:url('/assets/images/home/explore-secret-lair.webp'); --card-pos:58% center; }
.tmf-home-explore-card--cardmarket { --card-bg:url('/assets/images/home/explore-cardmarket.webp'); --card-pos:68% center; --content-bg-top:rgba(10,10,10,.28); --content-bg-bottom:rgba(10,10,10,.58); }

/* Website News */
.tmf-home-site-news-wrap { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 28px; align-items: start; }
.tmf-home-site-news { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.tmf-home-site-row { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid #3d3d3d; }
.tmf-home-site-date { font-weight: 900; color: #eee; }
.tmf-home-site-date small { display: block; color: #777; font-size: .64rem; text-transform: uppercase; margin-top: 4px; line-height: 1.25; }
.tmf-home-site-row h3 { font-size: .95rem; margin: 0 0 4px; color: #e8e8e8; }
.tmf-home-site-row p { font-size: .81rem; line-height: 1.42; color: #929292; margin: 0; }
.tmf-home-site-details { margin-top: 8px; }
.tmf-home-site-details summary { display: inline-flex; align-items: center; gap: 7px; list-style: none; cursor: pointer; color: #c9c9c9; font-size: .75rem; font-weight: 700; border-bottom: 1px solid #666; padding-bottom: 2px; }
.tmf-home-site-details summary::-webkit-details-marker { display: none; }
.tmf-home-site-details summary::after { content: "+"; color: var(--tmf-home-red); font-size: .88rem; font-weight: 900; }
.tmf-home-site-details[open] summary::after { content: "−"; }
.tmf-home-site-details summary:hover, .tmf-home-site-details summary:focus-visible { color: #fff; border-color: var(--tmf-home-red); outline: none; }
.tmf-home-site-details p { margin-top: 10px; color: #aaa; }
.tmf-home-archive-card { padding: 20px; border: 1px solid #4a4040; border-radius: 8px; background: linear-gradient(180deg,#242121,#1e1e1e); }
.tmf-home-archive-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #534646; border-radius: 5px; color: var(--tmf-home-red); font-weight: 900; margin-bottom: 18px; }
.tmf-home-archive-card h3 { margin: 0 0 8px; color: #eee; font-size: 1rem; }
.tmf-home-archive-card p { margin: 0 0 15px; color: #8f8f8f; font-size: .82rem; line-height: 1.5; }
.tmf-home-archive-link { display: inline-block; color: #d8d8d8 !important; text-decoration: none; font-size: .8rem; font-weight: 700; border-bottom: 1px solid #777; padding-bottom: 2px; }
.tmf-home-archive-link:hover, .tmf-home-archive-link:focus-visible { color: var(--tmf-home-red) !important; border-color: var(--tmf-home-red); }

@media (max-width: 930px) {
    .tmf-home-digest { grid-template-columns: 1fr; }
    .tmf-home-forge-strip { grid-template-columns: 1fr 1fr; }
    .tmf-home-explore-grid { grid-template-columns: 1fr 1fr; }
    .tmf-home-site-news-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .tmf-home { margin: 15px; padding: 18px; }
    .tmf-home-section-head { flex-direction: column; align-items: flex-start; gap: 7px; }
    .tmf-home-hero { min-height: 340px; background-position: 58% center; }
    .tmf-home-hero-copy { padding: 24px; }
    .tmf-home-hero-copy h1 { font-size: 2.15rem; }
    .tmf-home-forge-strip, .tmf-home-explore-grid, .tmf-home-site-news { grid-template-columns: 1fr; }
    .tmf-home-digest-lead { min-height: 350px; }
    .tmf-home-explore-card { min-height: 238px; }
    .tmf-home-explore-content p { max-width: none; }
}

@media (max-width: 520px) {
    .tmf-home { margin: 10px; padding: 14px; }
    .tmf-home-hero-copy h1 { font-size: 1.95rem; }
    .tmf-home-digest-wire { grid-template-columns: 84px 1fr; }
    .tmf-home-digest-lead h3 { font-size: 1.42rem; }
    .tmf-home-section-head h2 { font-size: 1.65rem; }
}
