:root {
    color-scheme: light;
    --ink: #17233a;
    --navy: #171d35;
    --muted: #536078;
    --blue: #4546cb;
    --soft: #eef0ff;
    --paper: #f4f6fa;
    --line: #e2e7ef;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Noto Sans Devanagari", sans-serif }
a { color: var(--blue); text-decoration: none }
a:hover { text-decoration: underline }
:focus-visible { outline: 3px solid #7770ff; outline-offset: 3px }
h1, h2, h3, p { margin: 0 }
h1, h2, h3 { line-height: 1.2 }
img { max-width: 100% }
small { color: var(--muted); font-size: .84rem }
.shell { width: min(1220px, calc(100% - 48px)); margin-inline: auto }
.top { background: var(--navy); color: #fff; border-bottom: 1px solid #303852 }
.bar { display: flex; align-items: center; min-height: 76px; gap: 24px }
.brand { color: inherit; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 1.26rem; font-weight: 850 }
.brand img { flex: none }
.bar nav { display: flex; gap: clamp(12px, 2.4vw, 30px); flex: 1; align-items: center }
.bar nav a, .language { font-size: .96rem; font-weight: 700; color: #f1f3fc; white-space: nowrap }
.language { padding: 7px 11px; border: 1px solid #5a637c; border-radius: 6px }
.search { display: flex; gap: 7px; max-width: 570px; margin: 0 0 16px }
.search input { min-width: 0; flex: 1 }
.bar .search { flex: 0 1 355px; min-width: 0; margin: 0 }
.bar .search button { background: #5757dd; border-color: #5757dd }
main { min-height: 75vh; padding-block: 27px 58px }
.store-intro { margin-bottom: 18px }
.store-intro h1, .intro h1 { font-size: clamp(1.85rem, 3vw, 2.75rem); letter-spacing: -.035em }
.store-intro p { margin-top: 5px; color: var(--muted) }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 25px }
.feature { display: flex; align-items: flex-end; position: relative; overflow: hidden; isolation: isolate; color: #fff; min-height: 200px; border-radius: 14px; padding: 20px; background: linear-gradient(130deg,#282376,#5045b6) }
.feature-1 { background: linear-gradient(130deg,#713219,#a74720) }
.feature-2 { background: linear-gradient(130deg,#173350,#235987) }
.feature:hover { text-decoration: none }
.feature:hover .feature-info span { background: #fff; color: var(--navy) }
.feature-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1 }
.feature-art::before, .feature-art::after { content: ""; position: absolute; width: 235px; height: 235px; right: -43px; top: -52px; border: 1px solid #ffffff5a; border-radius: 42%; transform: rotate(24deg) }
.feature-art::after { width: 290px; height: 290px; right: -70px; top: -70px }
.feature-art .icon { position: absolute; right: 25px; top: 21px; width: clamp(66px,9vw,108px); height: auto; aspect-ratio: 1; border-radius: 24px; transform: rotate(-10deg); box-shadow: 0 15px 30px #10132845 }
.feature-art .fallback { color: #fff; background: #ffffff36; font-size: clamp(2.15rem,5vw,4.4rem); border: 1px solid #ffffff8a }
.feature-info { max-width: 90% }
.feature-info small { color: #fff; opacity: .88 }
.feature-info h2 { margin: 2px 0 11px; font-size: clamp(1.25rem, 2.25vw, 1.85rem); overflow-wrap: anywhere }
.feature-info span { display: inline-block; border: 1px solid #ffffff94; font-size: .89rem; padding: 4px 11px; border-radius: 6px; font-weight: 700 }
.store-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(235px, .34fr); gap: 18px }
.store-sections { display: grid; gap: 18px; align-content: start; min-width: 0 }
.store-panel, .panel, .detail { background: #fff; border: 1px solid var(--line); border-radius: 13px; min-width: 0 }
.store-panel { padding: 18px }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 13px }
.section-head h2 { font-size: 1.2rem }
.section-head a { font-size: .91rem; white-space: nowrap; font-weight: 750 }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px,100%), 1fr)); gap: 10px }
.store-panel .grid { grid-template-columns: repeat(2,minmax(0,1fr)) }
.card { display: flex; align-items: flex-start; gap: 11px; padding: 12px; min-width: 0; min-height: 91px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; overflow-wrap: anywhere }
.card:hover { border-color: #a6a9ea; background: #fafaff; text-decoration: none }
.card h3 { font-size: 1rem; margin-bottom: 3px }
.card p { margin-top: 3px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .88rem }
.icon { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; flex: none }
.fallback { display: grid; place-items: center; background: #e3e7ff; color: #3a3bb1; font-size: 1.5rem; font-weight: 850 }
.card:nth-child(4n+2) .fallback { background: #ddf5ee; color: #16604d }
.card:nth-child(4n+3) .fallback { background: #fcebdc; color: #8a431a }
.card:nth-child(4n+4) .fallback { background: #f8e4f3; color: #7c326a }
.category { justify-content: space-between; align-items: center; min-height: 66px }
.category h2 { font-size: 1.1rem }
.category-list { display: grid; gap: 7px }
.category-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; background: #f4f6fc; color: var(--ink); font-weight: 650 }
.category-list small { background: #fff; border-radius: 5px; padding: 1px 6px }
.update-list { list-style: none; margin: 0; padding: 0 }
.update-list li + li { border-top: 1px solid var(--line) }
.update-list a { display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 9px 0; overflow-wrap: anywhere }
.update-list .icon { width: 37px; height: 37px; border-radius: 9px; font-size: 1.1rem }
.update-list small, .release small { display: block }
.intro { margin-bottom: 20px }
.empty { padding: 18px; color: var(--muted) }
.pager { display: flex; gap: 10px; margin-top: 18px }
.pager a { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 7px 14px }
input, textarea { border: 1px solid #a3afc2; border-radius: 7px; color: var(--ink); background: #fff; padding: 9px 11px; font: inherit }
button, .button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--blue); padding: 9px 14px; border-radius: 7px; background: var(--blue); color: #fff; font: inherit; font-weight: 750; cursor: pointer }
.button:hover { text-decoration: none; filter: brightness(.92) }
.crumb { margin-bottom: 12px; color: var(--muted) }
.detail { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; padding: clamp(18px,4vw,34px); margin-bottom: 16px }
.detail-title, .release-head, .admin-tools { display: flex; align-items: center; gap: 13px }
.detail-title .icon { width: clamp(56px,10vw,96px); height: auto; aspect-ratio: 1; font-size: 2rem }
.detail-title h1 { font-size: clamp(1.7rem,4vw,3rem); overflow-wrap: anywhere }
.detail-title p, .panel p { margin-top: 6px; color: var(--muted) }
.detail-title small { display: inline-block; margin-top: 6px }
.detail-actions { display: flex; gap: 10px; flex-direction: column; align-items: stretch; text-align: center }
.detail-actions .source { font-size: .93rem; font-weight: 650 }
.detail-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 16px }
.panel { padding: 18px; margin-bottom: 16px; overflow-wrap: anywhere }
.panel h2 { font-size: 1.25rem }
.specs { align-self: start }
dl { margin-bottom: 0 }
dt { font-weight: 720 }
dd { margin: 2px 0 10px; color: var(--muted) }
.description { white-space: pre-line }
.gallery { display: flex; gap: 12px; overflow-x: auto; margin-top: 12px; padding-bottom: 6px }
.gallery a { flex: none }
.gallery img { object-fit: contain; background: var(--paper); border-radius: 9px }
.release { border-top: 1px solid var(--line); margin-top: 10px; padding: 13px 0 0 }
.release-head { justify-content: space-between }
.secondary { color: var(--blue); background: var(--soft) }
details { margin-top: 7px }
summary { cursor: pointer; color: var(--blue) }
.admin-tools { flex-wrap: wrap; margin-bottom: 14px }
.admin-form { max-width: 720px; display: grid; gap: 12px }
.admin-form label { display: grid; gap: 5px }
.admin-form .check { display: flex }
.admin-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 12px 0 }
.admin-row small { display: block }
.admin-row+button { margin-top: 14px }
footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted) }
.foot { min-height: 74px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap }
.foot .brand { color: var(--ink) }
@media (max-width: 900px) {
    .bar { gap: 14px }
    .bar .search { flex-basis: 270px }
    .store-grid { grid-template-columns: minmax(0,1fr) minmax(205px,.44fr) }
    .store-panel { padding: 13px }
}
@media (max-width: 700px) {
    .shell { width: calc(100% - 28px) }
    .bar { flex-wrap: wrap; padding-block: 11px; gap: 10px 14px }
    .bar .brand { flex: 1 }
    .bar nav { order: 3; flex: 1 0 100%; gap: 20px }
    .bar .search { order: 4; flex: 1 0 100%; max-width: none }
    .featured-grid { grid-auto-flow: column; grid-auto-columns: minmax(200px,72%); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 5px }
    .feature { scroll-snap-align: start; min-height: 155px }
    .store-grid, .detail-grid { grid-template-columns: minmax(0,1fr) }
    .detail { grid-template-columns: 1fr }
    .detail-actions { align-items: flex-start }
}
@media (max-width: 480px) {
    main { padding-top: 20px }
    .store-panel .grid { grid-template-columns: 1fr }
    .release-head .button { padding: 7px 10px; text-align: center }
    .foot { padding-block: 12px }
}

.feature.illustrated { min-height: 226px; }
.illustrated .feature-art::before { display: none; }
.illustrated .feature-art::after {
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    transform: none;
    background: linear-gradient(12deg, #101323f5 4%, #12152b88 43%, #10132300 76%);
}
.feature-image { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 45%; }
.feature-info span { background: #1618305c; }
.feature-info h2 { text-shadow: 0 2px 8px #0808139c; }
@media (max-width: 700px) { .feature.illustrated { min-height: 182px; } }

/* Catalogue storefront */
:root { --ink:#111b2e; --navy:#0f1829; --blue:#3d43c0; --paper:#f5f7fb; --line:#e4e8f1; }
.top { position: relative; z-index: 1; box-shadow: 0 5px 16px #10182812; }
.store-intro { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin: 6px 0 20px; }
.store-intro h1 { font-size:clamp(1.75rem,3.1vw,3rem); font-weight:850; letter-spacing:-.05em; }
.browse-all { display:inline-flex; align-items:center; flex:none; border-radius:9px; padding:.62rem 1rem; color:var(--blue); background:#eceeff; font-weight:740; }
.featured-grid { grid-template-columns: 1.55fr 1fr 1fr; margin-bottom: 23px; gap: 13px; }
.feature.illustrated { min-height: 250px; }
.feature:first-child .feature-image { object-position:center 50%; }
.illustrated .feature-art::after { background:linear-gradient(0deg,#0d1223e8 0%,#13192e64 53%,transparent 82%); }
.feature { border-radius: 16px; }
.feature-info h2 { font-size:clamp(1.2rem,2vw,1.85rem); margin: 4px 0 10px; }
.feature-icon { margin-bottom:5px; }
.feature-icon .icon { width:35px; height:35px; border-radius:9px; font-size:.94rem; vertical-align:middle; }
.feature-icon .fallback { color:#fff; background:#202b49; border:1px solid #ffffff65; }
.store-panel { border-radius:15px; padding:18px; box-shadow:0 3px 12px #16264706; }
.store-panel .grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 10px; }
.store-panel .card { min-height:85px; align-items:center; border:1px solid transparent; padding:9px 7px; }
.store-panel .card p { display:none; }
.store-panel .card .icon { width:48px; height:48px; }
.store-panel .card:hover { border-color:#dfe3fb; background:#f5f5ff; }
.section-head { padding-bottom:10px; border-bottom:1px solid var(--line); margin-bottom:6px; }
.section-head h2 { font-size:1.25rem; font-weight:800; }
.category-list { margin-top:12px; }
@media(max-width:1000px) { .store-panel .grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
    .store-intro { margin-top:0; }
    .store-intro p { font-size:.92rem; }
    .browse-all { display:none; }
    .featured-grid { grid-template-columns:none; grid-auto-columns: minmax(225px,76%); }
    .feature.illustrated { min-height:195px; }
    .store-panel { padding:13px; }
    .store-panel .card { min-height:74px; gap:8px; }
    .store-panel .card .icon { width:38px; height:38px; }
    .store-panel .card h3 { font-size:.91rem; }
}

.app-icon-wrap { display:inline-grid; flex:none; position:relative; vertical-align:middle; }
.app-icon-wrap > * { grid-area:1 / 1; }
.app-icon-wrap img { z-index:1; background:#fff; box-shadow:0 0 0 1px #12203a12; object-fit:cover; }
.app-icon-wrap img[hidden], .gallery a[hidden], .screenshot-panel[hidden] { display:none; }
.feature-icon .app-icon-wrap { border-radius:9px; }
.detail .app-icon-wrap { align-self:flex-start; }
.gallery { padding:4px 2px 12px; scroll-snap-type:x proximity; }
.gallery a { display:grid; place-items:center; scroll-snap-align:start; border-radius:12px; background:#ecf0f7; border:1px solid var(--line); overflow:hidden; }
.gallery img { display:block; width:clamp(145px,20vw,182px); height:300px; background:transparent; object-fit:contain; border-radius:0; }
.source-meta { margin-top:6px; }
.preview-panel { margin-bottom:20px; }
.preview-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:12px; }
.preview-card { min-width:0; overflow:hidden; display:flex; align-items:center; min-height:107px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:#f6f8fe; }
.preview-card img { width:85px; height:107px; flex:none; object-fit:cover; object-position:top; background:#e8edfa; }
.preview-card span { padding:10px 12px; overflow-wrap:anywhere; }
.preview-card strong, .preview-card small { display:block; }
.preview-card[hidden] { display:none; }
@media(max-width:630px) {
    .preview-grid { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(192px,61%); overflow-x:auto; scroll-snap-type:x proximity; }
    .preview-card { scroll-snap-align:start; }
}

/* Download catalogue and detail navigation */
.app-tags, .app-sections, .version-facts { display:flex; flex-wrap:wrap; gap:8px; }
.app-tags { margin-top:12px; }
.app-tags a, .app-sections a { padding:5px 11px; background:#eef1ff; border-radius:8px; color:#333ab0; font-weight:650; font-size:.88rem; }
.developer-link { display:inline-block; margin-top:9px; font-size:.9rem; font-weight:700; }
.app-sections { margin-bottom:17px; padding:9px; background:#fff; border:1px solid var(--line); border-radius:12px; }
.app-sections a { padding:7px 13px; }
.version-facts { color:var(--muted); margin-top:6px; font-size:.85rem; }
.version-facts span { border-radius:6px; padding:2px 6px; background:#f2f5fa; }
.directory-heading p { color:var(--muted); margin-top:7px; }
.directory-grid { grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr)); }
.related-panel { margin-top:3px; }
.crumb { display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:.89rem; }
#main .gallery img { height:clamp(210px,45vw,310px); }
.release details { margin-top:9px; }
@media(max-width:840px) { .bar nav a:nth-child(3) { display:none; } }
@media(max-width:700px) { .bar nav a:nth-child(3) { display:inline; } }

.storefront-hero { padding:clamp(22px,4vw,42px); background:#151d3a; background:linear-gradient(125deg,#161d3a 30%,#2b3680); color:#fff; border-radius:22px; align-items:center; }
.storefront-hero p { color:#dfe5ff; max-width:530px; }
.store-links { margin-top:17px; display:flex; flex-wrap:wrap; gap:8px; }
.storefront-hero .button { background:#f1f2ff; color:#282f84; border-color:#f1f2ff; }
.storefront-hero .secondary { background:transparent; color:#fff; border-color:#858fc4; }
.store-counts { display:grid; grid-template-columns:repeat(2,minmax(100px,1fr)); gap:9px; margin:0; }
.store-counts div { display:flex; flex-direction:column-reverse; min-width:0; padding:12px 16px; background:#ffffff12; border:1px solid #ffffff35; border-radius:12px; }
.store-counts dt { color:#dfe5ff; font-size:.83rem; }
.store-counts dd { color:white; margin:0; font-size:clamp(1.3rem,3vw,2.15rem); font-weight:850; }
.home-category-strip { display:flex; gap:8px; overflow-x:auto; margin-bottom:15px; padding:2px 0 6px; }
.home-category-strip a { font-size:.88rem; font-weight:650; flex:none; border-radius:9px; background:#fff; padding:6px 11px; border:1px solid var(--line); }
@media(max-width:700px) {
    .storefront-hero { display:block; }
    .store-counts { margin-top:16px; }
    .bar nav { flex-wrap:wrap; gap:8px 15px; }
}

/* Dakar Flash editorial theme */
:root {
    --ink:#202018; --navy:#202018; --blue:#974119; --paper:#faf7ee;
    --line:#e6dfcf; --muted:#645c4f; --soft:#fff0cc;
}
body { font-family:"Aptos","Segoe UI",system-ui,sans-serif; }
.top { background:#fffaf0; color:var(--ink); box-shadow:none; border-bottom:1px solid var(--line); }
.bar { min-height:70px; }
.brand { font-weight:900; letter-spacing:-.045em; }
.bar nav a,.language { color:var(--ink); }
.language { border-color:#c9baa3; }
.bar .search button,.button,button { background:#f7bb31; color:#211a0c; border-color:#f7bb31; }
.secondary { background:#fff2d1; color:#753719; border-color:#e7c281; }
.dispatch { display:grid; grid-template-columns:minmax(0,1fr) minmax(170px,24%); gap:18px; margin-bottom:16px; }
.dispatch .storefront-hero { display:flex; margin:0; min-height:235px; padding:clamp(24px,5vw,52px); border-radius:9px; color:#171714; background:#f7bb31; }
.dispatch .storefront-hero h1 { font-size:clamp(2.15rem,5.4vw,5rem); line-height:1; max-width:800px; font-weight:920; letter-spacing:-.065em; }
.dispatch .storefront-hero p { margin-top:10px; color:#362606; }
.dispatch .button { border-color:#211d15; background:#211d15; color:#fffaf0; }
.dispatch .button.secondary { color:#211d15; background:transparent; }
.dispatch .store-counts { margin:0; grid-template-columns:1fr; background:#25271e; padding:14px; border-radius:9px; }
.dispatch .store-counts div { border-color:#ffffff28; border-radius:5px; background:none; }
.dispatch .store-counts dt { color:#f8ebcf; }
.dispatch .store-counts dd { color:#ffc956; }
.home-category-strip a { color:#5b371d; background:#fffaf0; border-radius:5px; }
.editorial-heading { margin:20px 0 10px; }
.editorial-heading h2,.section-head h2,.directory-heading h1 { letter-spacing:-.035em; font-weight:850; }
.featured-grid { grid-template-columns:1.65fr 1fr; grid-template-rows:repeat(2,145px); gap:10px; }
.feature.illustrated,.feature { min-height:0; border-radius:8px; }
.feature:first-child { grid-row:span 2; }
.feature:not(:first-child) .feature-icon { display:none; }
.feature-info h3 { color:#fff; margin:4px 0 8px; font-size:clamp(1.1rem,2.5vw,1.7rem); line-height:1.12; }
.feature:first-child .feature-info h3 { font-size:clamp(1.4rem,3vw,2.55rem); }
.feature-info span { background:#f7bb31; border-color:#f7bb31; color:#242013; }
.store-panel,.panel,.detail,.card { border-radius:8px; background:#fffdf8; }
.store-panel .card:hover,.card:hover { background:#fff3d8; border-color:#e0bc7b; }
.section-head { border-bottom:1px solid #e0d6c1; }
.section-head h2 { border-left:4px solid #ed9a22; padding-left:10px; }
.category-list a,.preview-card { background:#f8f0df; }
.detail { border-top:5px solid #ed9a22; }
.app-tags a,.app-sections a,.version-facts span { background:#f8e9ca; color:#663715; }
.games-shelf { margin-top:18px; }
.foot { color:#5b5140; }
@media(max-width:700px) {
    .dispatch { grid-template-columns:1fr; gap:8px; }
    .dispatch .store-counts { grid-template-columns:1fr 1fr; }
    .dispatch .storefront-hero { min-height:0; }
    .featured-grid { grid-template-columns:none; grid-template-rows:190px; grid-auto-columns:minmax(200px,72%); }
    .feature:first-child { grid-row:auto; }
}

.download-dossier { display:grid; grid-template-columns:minmax(0, 1fr) minmax(220px, .35fr); gap:18px; }
.download-main { min-width:0; }
.download-dossier .specs { position:sticky; top:16px; margin:0; border-top:4px solid #e9a32c; }
.directory-results { background:#fffdf8; border:1px solid var(--line); border-radius:8px; }
.directory-result { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:15px; align-items:center; padding:16px 20px; }
.directory-result + .directory-result { border-top:1px solid var(--line); }
.directory-result h2 { font-size:1.12rem; overflow-wrap:anywhere; }
.directory-result h2 a { color:var(--ink); }
.directory-result p { color:var(--muted); font-size:.94rem; margin-top:4px; overflow-wrap:anywhere; }
.directory-open { border:1px solid #e7c281; border-radius:6px; padding:6px 10px; font-weight:700; font-size:.87rem; }
@media(max-width:700px) {
    .download-dossier { grid-template-columns:1fr; gap:0; margin-bottom:16px; }
    .download-dossier .specs { position:static; }
    .directory-result { grid-template-columns:auto minmax(0,1fr); padding:13px; }
    .directory-open { display:none; }
}
