/*
Theme Name: Dragon Fighters
Version: 0.2.0
Text Domain: dragon-fighters
*/
:root {
    color-scheme: dark;
    --canvas: #0b0c0e;
    --text: #f7f4f0;
    --accent: #c23b32;
    --width: 1108px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 1rem/1.58 system-ui, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #ffd785; outline-offset: 3px; }
.df-wrap { width: min(calc(100% - 2rem), var(--width)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 10; background: white; color: black; padding: .8rem; }
.df-header { position: relative; z-index: 5; background: #101012; border-bottom: 1px solid #37302e; }
.df-header-inner { display: flex; gap: clamp(.65rem, 2vw, 2rem); align-items: center; justify-content: space-between; min-height: 60px; }
.df-nav-logo { flex: 0 0 auto; }
.df-nav-logo img { height: 43px; width: auto; }
.df-header ul { margin: 0; padding: 0; list-style: none; }
.df-nav > ul { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .7rem; }
.df-header li { position: relative; font-size: .88rem; }
.df-header a, .df-header summary { display: block; padding: .38rem .25rem; text-decoration: none; }
.df-header summary { cursor: pointer; display: list-item; }
.df-header a:hover, .df-header summary:hover { color: #ffd9ad; }
.df-nav details > ul { position: absolute; top: 100%; right: 0; min-width: 11rem; max-width: 17rem; padding: .45rem .6rem; background: #171719; border: 1px solid #59423d; border-radius: .25rem; box-shadow: 0 8px 22px #0009; }
.df-nav details details > ul { position: static; min-width: 0; border-width: 0 0 0 1px; box-shadow: none; }
.df-mobile-menu { display: none; }
.df-wordmark { background: #060608; padding: clamp(.9rem, 2vw, 1.8rem) 1rem; text-align: center; }
.df-wordmark h1 { margin: 0; }
.df-wordmark img { width: min(95%, 610px); margin-inline: auto; max-height: 125px; object-fit: contain; }
.df-carousel { position: relative; border-block: 1px solid #35343d; }
.df-slide { position: relative; display: grid; align-items: center; min-height: clamp(310px, 33vw, 465px); isolation: isolate; overflow: hidden; background: #19191d; }
.df-slide-back { position: absolute; inset: 0; z-index: -2; }
.df-slide-back img { width: 100%; height: 100%; object-fit: cover; }
.df-slide::after { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(90deg, #080814b0, #08081440 54%, transparent); }
.df-slide-copy { width: 58%; margin: 1.3rem 0 3.1rem; padding: 1rem clamp(1rem, 4vw, 4.5rem); text-align: center; }
.df-slide-copy > img { width: min(100%, 390px); margin: 0 auto .7rem; }
.df-slide-copy p { font-size: clamp(1.05rem, 2.2vw, 1.7rem); font-weight: 700; line-height: 1.22; text-shadow: 0 2px 4px #000; }
.df-slide-copy h2 { text-shadow: 0 2px 4px #000; margin: 0; }
.df-slide-actors { position: absolute; inset: 0 0 0 50%; z-index: -1; }
.df-slide-actors img { position: absolute; width: auto; height: 126%; max-width: none; object-fit: contain; right: -9%; top: 2%; }
.df-slide-actors img:nth-child(2) { right: 33%; top: 8%; z-index: -1; }
.df-slide-actors img:nth-child(3) { right: 10%; top: 14%; z-index: -2; }
.df-slide-actors img:nth-child(n+4) { display: none; }
.df-slide-2 .df-slide-actors img:last-child, .df-slide-4 .df-slide-actors img:first-child, .df-slide-5 .df-slide-actors img:last-child { display: none; }
.df-slide-3 .df-slide-actors img { height: 70%; right: 0; top: 22%; }
.df-slide-3 .df-slide-actors img:nth-child(2) { right: 40%; }
.df-controls { position: absolute; bottom: .55rem; right: .7rem; display: flex; align-items: center; gap: .6rem; border-radius: .3rem; padding: .2rem; background: #100f13dd; }
.df-controls button { border: 1px solid #ae9d8e; border-radius: .2rem; background: #232028; color: white; font: 1.6rem/1 system-ui; width: 44px; height: 44px; cursor: pointer; }
.df-counter { font-variant-numeric: tabular-nums; font-size: .9rem; }
.df-button { display: inline-flex; justify-content: center; align-items: center; background: #a92923; color: white; min-height: 44px; padding: .52rem 1.2rem; border: 1px solid #ee8270; border-radius: .25rem; text-decoration: none; font-weight: 700; }
.df-button:hover { background: #c6352d; }
.df-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.df-callout, .df-blog { padding-block: clamp(1.65rem, 4vw, 3.4rem); text-align: center; }
.df-callout h2, .df-cover h2, .df-community h2, .df-blog h2 { margin: 0 0 .8rem; font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.16; }
.df-callout p { margin: 0 0 1.1rem; }
.df-arcade { padding-bottom: 1.3rem; }
.df-arcade img { width: min(100%, 650px); margin-inline: auto; }
.df-cover, .df-community { background: linear-gradient(#07070ab0, #07070ae5), var(--section-art) center / cover; text-align: center; padding-block: clamp(2rem, 5vw, 4rem); }
.df-community h2:not(:first-child) { margin-top: 2rem; }
.df-products, .df-posts, .df-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.7rem, 2vw, 1.4rem); }
.df-products figure, .df-gallery figure { margin: 0; }
.df-products img { width: 100%; height: clamp(140px, 25vw, 300px); object-fit: contain; }
.df-products figcaption { font-weight: 700; padding-top: .65rem; }
.df-posts { text-align: left; margin: 1.3rem 0; }
.df-posts article { border: 1px solid #474041; background: #17171b; }
.df-posts img, .df-gallery img { width: 100%; aspect-ratio: 2/1; object-fit: cover; }
.df-posts h3 { margin: .6rem .8rem .8rem; line-height: 1.3; font-size: 1rem; }
.df-gallery { margin-top: 1.3rem; }
.df-gallery img { aspect-ratio: 3/2; }
footer { border-top: 1px solid #403a38; padding-block: 1.8rem; color: #ccc4bb; font-size: .86rem; }
@media (max-width: 850px) {
    .df-mobile-menu { display: block; }
    .df-mobile-menu > summary { min-height: 44px; padding: .55rem .7rem; }
    .df-mobile-menu nav { position: absolute; inset: 100% 0 auto; max-height: min(70vh, 640px); overflow: auto; background: #18181b; padding: .6rem 1rem 1.1rem; border-block: 1px solid #55433d; }
    .df-mobile-menu li ul { padding-inline-start: 1rem; }
    .df-mobile-menu a, .df-mobile-menu details summary { padding: .5rem .2rem; }
    .df-nav { display: none; }
}
@media (max-width: 560px) {
    .df-wrap { width: min(calc(100% - 1.35rem), var(--width)); }
    .df-carousel { width: 100%; }
    .df-slide { min-height: 390px; align-items: end; }
    .df-slide-copy { width: 100%; margin: 6.5rem 0 3.05rem; padding: .9rem .85rem; }
    .df-slide-copy > img { width: min(70%, 240px); }
    .df-slide-actors { inset: 0 0 35% 22%; }
    .df-slide-actors img { height: 126%; }
    .df-slide::after { background: linear-gradient(transparent, #0c0a18a8 45%, #0c0a18ed); }
    .df-products, .df-posts, .df-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.df-nav .menu-item-has-children > a::after { content: ' ▾'; }
.df-nav .sub-menu { display: none; position: absolute; z-index: 7; top: 100%; right: 0; width: max-content; min-width: 11rem; max-width: 17rem; padding: .45rem .6rem; background: #171719; border: 1px solid #59423d; border-radius: .25rem; }
.df-nav .menu-item-has-children:hover > .sub-menu, .df-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
.df-nav .sub-menu .sub-menu { position: static; width: auto; min-width: 0; border-width: 0 0 0 1px; }
.df-reading { min-height: 55vh; padding-block: clamp(1.6rem, 5vw, 4rem); overflow-wrap: anywhere; }
.df-reading > article { max-width: 860px; margin-inline: auto; }
.df-reading h1 { font-size: clamp(1.9rem, 5vw, 3.25rem); line-height: 1.12; }
.df-reading img, .df-reading iframe, .df-reading video { max-width: 100%; }
.df-blog-tools { margin: 0 0 1.35rem; padding: .65rem .85rem; border: 1px solid #674440; border-radius: .35rem; }
.df-blog-tools summary { cursor: pointer; }
.df-blog-tools .search-form { margin-top: .7rem; }
.df-blog-tools .search-field { max-width: 100%; }
.df-blog-list article h2, .df-blog-list article p { margin: .65rem .85rem; }
.df-blog-list article h2 { font-size: 1.08rem; line-height: 1.3; }
.df-posts.wp-block-post-template { list-style: none; padding: 0; }
.df-posts .wp-block-post { border: 1px solid #474041; background: #17171b; }
.df-posts .wp-block-post-title { margin: .65rem .85rem; }
.df-posts figure { margin: 0; }
.df-meta, .df-comments { color: #ccc4bb; }
.df-comments { max-width: 860px; margin-inline: auto; }
.df-comments textarea, .df-comments input { max-width: 100%; }

.df-shop-showcase { padding: clamp(2.4rem, 6vw, 5.25rem) 0; text-align: center; background: radial-gradient(ellipse at top, #34191d 0, #160f14 50%, #0b0c0e 100%); }
.df-shop-eyebrow { margin: 0 0 .5rem; color: #ffb49c; letter-spacing: .14em; font-size: .8rem; font-weight: 750; text-transform: uppercase; }
.df-shop-showcase h2 { margin: 0; font-size: clamp(1.8rem, 4.5vw, 3.2rem); line-height: 1.1; }
.df-shop-intro { margin: .9rem auto 1.8rem; max-width: 38rem; color: #e1d4cc; }
.df-shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.7rem, 2vw, 1.25rem); text-align: left; }
.df-shop-card { display: flex; flex-direction: column; overflow: hidden; background: #1e161a; border: 1px solid #674440; border-radius: .55rem; }
.df-shop-cover { display: grid; place-items: center; padding: .7rem; background: #0e0c10; }
.df-shop-cover img { width: 100%; aspect-ratio: 5 / 7; object-fit: contain; }
.df-shop-card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(.7rem, 2vw, 1.15rem); }
.df-shop-card h3 { font-size: clamp(1.02rem, 1.9vw, 1.25rem); line-height: 1.22; margin: 0; overflow-wrap: anywhere; }
.df-shop-card p { font-size: .91rem; margin: .55rem 0 1.05rem; }
.df-shop-card .df-shop-type { margin: 0 0 .45rem; color: #ffbd9e; font-size: .76rem; font-weight: 700; }
.df-shop-card .df-button { align-self: stretch; margin-top: auto; padding-inline: .35rem; }
.df-shop-quickstart { margin: 2rem auto 0; border-top: 1px solid #674440; padding-top: 1.3rem; }
.df-shop-quickstart p { margin: 0 0 .75rem; }

@media (max-width: 760px) {
    .df-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
