:root {
  --bg: #090609; --sidebar: #0c080c; --surface: #150f14; --surface-2: #231721;
  --line: #49313f; --text: #fff3f8; --muted: #c9adb9; --faint: #a38896;
  --accent: #ff78b5; --accent-strong: #ec549a; --ink: #230919;
  --rose-frame: #795265; --rose-white: #ffdbed; --rose-dim: #d099b1;
  --side-width: 195px; --top-height: 87px;
}

body { background: var(--bg); }
.app-shell { border: 1px solid var(--rose-frame); border-radius: 10px; box-shadow: inset 0 0 0 2px #2c1c26; }
.sidebar { padding-inline: 16px; border-color: #2c1c27; overflow: hidden; }
.brand { min-height: 76px; margin: 0 6px 8px; }
.brand-icon { color: var(--rose-white); border: 1px solid #9f607d; border-radius: 10px; background: #3f1a2e; box-shadow: inset 0 0 12px #72304f; }
.brand-name small { color: var(--rose-dim); }
.navigation { flex: 0 1 auto; min-height: 0; grid-auto-rows: min-content; align-content: start; gap: 10px; overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #795265 transparent; }
.navigation:focus-within { scroll-behavior: auto; }
.nav-group p { color: var(--faint); }
.nav-link { min-height: 38px; color: var(--muted); padding: 7px 12px; border-radius: 9px; }
.store-navigation .nav-link { min-height: 40px; }
.nav-link .icon { color: var(--rose-dim); }
.nav-link.selected { color: var(--rose-white); border-color: #63364d; background: linear-gradient(95deg, #5e2c43, #25151d); }
.nav-link.selected .icon { color: var(--accent); }
.worker-navigation .nav-link, .utility-navigation .nav-link { min-height: 34px; }
.sidebar-bottom { flex: 0 0 auto; padding-top: 8px; }
.sidebar-mascot-slot { flex: 1 0 0px; position: relative; min-height: 0; pointer-events: none; }
.sidebar-mascot { position: absolute; inset: auto 0 0; width: min(100%, 125px); height: min(100%, 163px); margin-inline: auto; object-fit: contain; object-position: bottom; }
.sidebar-mascot-slot + .sidebar-bottom { margin-top: 0; }
.sidebar-foot { min-height: 32px; font-size: 10px; }
.sidebar .demo-link { min-height: 36px; padding: 4px 8px; }
.sidebar .demo-link > span:nth-child(2) { gap: 1px; }
.sidebar .demo-icon { width: 25px; height: 25px; }
.sidebar .demo-link small { display: none; }
.topbar { padding-inline: 24px 32px; background: #0b070a; border-color: #382630; }
.app-shell:not(.admin-shell) .topbar-left { justify-content: flex-end; }
.site-search { height: 40px; width: min(100%, 264px); background: #120c10; border-color: var(--rose-frame); border-radius: 24px; color: var(--rose-dim); padding-inline: 13px; }
.site-search input::placeholder { color: #ab8e9d; }
.topbar .icon-button { color: var(--rose-dim); }
.topbar .icon-button .icon { width: 21px; height: 21px; }
.avatar { border-color: var(--rose-frame); color: var(--rose-white); background: #48243a; }
.notification-button i { box-shadow: 0 0 0 2px var(--bg); }
.footer { border-color: #34222d; min-height: calc(35px + env(safe-area-inset-bottom)); color: var(--faint); }
.admin-shell { --top-height: 60px; --side-width: 210px; }
.admin-shell .brand { min-height: 66px; }
.admin-shell .sidebar { background: #100c10; }
.admin-shell .topbar { background: #140f13; }

.button.primary:hover { background: #ffa4ce; border-color: #ffa4ce; }
.button.soft { background: #382132; border-color: #644257; }
.button.soft:hover { background: #50273e; border-color: var(--rose-frame); }
.button.secondary { border-color: var(--line); }
.button.secondary:hover { background: var(--surface-2); border-color: var(--rose-frame); }
.button.secondary .icon { color: var(--rose-dim); }
.demo-link, .experience-offer, .announcement, .product-card, .catalog-filters .filter-chip, .sort-select, .order-card, .order-card .order-foot { border-color: var(--line); }
.demo-link, .experience-offer, .announcement { background: #21141e; }
.demo-link:hover, .announcement:hover, .product-card:hover { border-color: var(--rose-frame); }
.demo-icon, .experience-mark { background: #47263b; color: var(--rose-white); }
.experience-price { color: #ffb9d8; }
.experience-text small, .experience-price small { color: var(--muted); }
.catalog-filters .filter-chip.selected, .spec-option:has(input:checked), .segmented button.selected, .tabs button.selected { border-color: #985475; background: #422039; color: var(--rose-white); }
.product-card, .product-body, .modal, dialog, .spec-option, .sort-select, .filter-chip { background-color: var(--surface); }
.product-foot, .dialog-head, .dialog-body, .order-foot { border-color: var(--line); }
.field :is(input, textarea, select), .spec-option, .filter-chip, .sort-select { border-color: var(--line); }
.field :is(input, textarea, select) { background-color: #110c11; }
.field :is(input, textarea, select):focus { border-color: var(--accent); }
.product-media, .product-media[class*="art-"] { background-color: #29192a; }
.product-tag.tag-hot { color: #ffdeeb; background: #66304e; }
.product-tag.tag-new { color: #dcffe9; background: #254637; }

.store-main { max-width: 1512px; padding: 0 26px 42px 0; }
.showcase { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(208px, 258px); gap: 14px; }
.showcase-main, .showcase-aside { min-width: 0; }
.showcase-aside { padding-top: 28px; }
.rose-hero { height: 365px; align-items: stretch; margin: 0; background: #130b13; border: 1px solid #432c40; border-radius: 46px 0 0 0; }
.rose-hero .hero-image { object-position: 65% center; }
.rose-hero .hero-shade { background: linear-gradient(90deg, #0e0710 0%, #170a17b8 32%, #170b172b 76%), linear-gradient(0deg, #0e080de8, transparent 29%); }
.rose-hero.reference-art .hero-image { object-fit: contain; object-position: right center; }
.rose-hero.reference-art .hero-shade { background: linear-gradient(90deg, #130b13 0%, #130b13e8 26%, #130b1360 49%, transparent 66%), linear-gradient(0deg, #0b070c, transparent 23%); }
.rose-hero .hero-content { align-self: start; position: relative; width: 100%; max-width: 100%; padding: 29px 25px 22px; }
.rose-hero p.rose-hero-kicker { color: #ffa1c7; display: block; margin: 0 0 7px 62px; font: italic 700 27px/1.2 Georgia, serif; text-shadow: 0 0 20px #fd64a4; }
.rose-hero h1 { color: #fff3fa; font-size: 54px; font-style: italic; font-weight: 900; line-height: 1.12; text-shadow: 0 2px 6px #2b0719, 0 0 25px #ef6ca768; max-width: 70%; margin: 0 0 33px; overflow-wrap: anywhere; }
.rose-hero h1 span { color: #ff84ba; }
.rose-hero h1.custom-title { max-width: 62%; font-size: 44px; }
.rose-hero p.rose-subtitle { max-width: 54%; color: var(--rose-white); margin: -17px 0 12px; font-size: 13px; }
.hero-search { display: flex; min-width: 0; width: min(56%, 380px); padding: 3px; border: 1px solid #9f627e; border-radius: 27px; background: #140c13e8; }
.hero-search:focus-within { border-color: var(--accent); }
.hero-search input { min-width: 0; flex: 1; border: 0; background: transparent; color: var(--text); padding: 0 13px; outline: none; }
.hero-search input::placeholder { color: #b797aa; }
.hero-search .button { min-height: 42px; min-width: 81px; border-radius: 24px; }
.hero-search .button .icon { order: 0; }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; max-width: 91%; gap: 5px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.hero-tags button { max-width: 100%; color: #e6c7d5; background: #1d121ddd; border: 1px solid #674256; border-radius: 20px; padding: 4px 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-tags button:hover { color: var(--rose-white); border-color: var(--accent); }

.showcase-section { margin: 10px 10px 0 30px; padding: 11px 12px 13px; border: 1px solid #503640; border-radius: 23px; min-width: 0; background: #100a0e; }
.showcase-heading { min-height: 24px; display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-bottom: 10px; }
.showcase-heading h2 { font-size: 14px; font-weight: 760; line-height: 1.25; display: flex; align-items: center; gap: 6px; }
.showcase-heading h2::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--accent); }
.section-more { padding: 4px 0 4px 4px; flex: 0 0 auto; color: var(--muted); background: none; border: 0; font-size: 11px; }
.section-more:hover { color: var(--accent); }
.section-more .icon { width: 13px; height: 13px; }
.showcase-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.showcase-tile { min-width: 0; position: relative; overflow: hidden; isolation: isolate; min-height: 118px; aspect-ratio: .79; color: var(--rose-white); background: #382039; border: 1px solid #805770; border-radius: 17px; padding: 0; }
.showcase-tile:hover { border-color: var(--accent); }
.showcase-tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.showcase-tile > .icon { position: absolute; inset: 20% 0 auto; margin-inline: auto; width: 35px; height: 35px; }
.all-games-tile { background: linear-gradient(145deg, #5a2a46, #1e111d 72%); }
.showcase-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #130711 2%, #13071198 36%, transparent 73%); pointer-events: none; }
.tile-label { display: grid; gap: 2px; position: absolute; z-index: 1; inset: auto 4px 6px; text-align: center; pointer-events: none; }
.tile-label b { font-size: 13px; line-height: 1.18; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.tile-label small { color: #ff9dc6; font-size: 10px; line-height: 1.15; }
.service-tile img { object-position: center top; }

.showcase-feature { padding: 17px 16px 18px; border: 1px solid #a67189; border-radius: 28px; min-width: 0; background: #0f080e; box-shadow: inset 0 0 18px #4a24333d; }
.showcase-feature .showcase-heading { margin: 0 0 12px; color: #e59db8; }
.showcase-feature .showcase-heading h2::before { display: none; }
.showcase-refresh { width: 24px; height: 24px; }
.showcase-refresh .icon { width: 15px; height: 15px; }
.feature-profile { display: flex; gap: 11px; align-items: center; }
.feature-profile > div { min-width: 0; }
.feature-profile strong { font-size: 17px; overflow-wrap: anywhere; }
.feature-avatar { flex: 0 0 76px; height: 76px; display: grid; place-items: center; border: 2px solid #f0a5c5; border-radius: 50%; overflow: hidden; background: #593048; box-shadow: 0 0 12px #82385488; color: var(--rose-white); font-size: 27px; }
.feature-avatar img { width: 100%; height: 100%; object-fit: cover; }
.feature-avatar .icon { width: 34px; height: 34px; }
.feature-badge { display: table; color: #d2f4c2; background: #243720; padding: 2px 6px; font-size: 10px; margin-top: 5px; border-radius: 20px; }
.feature-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin: 17px 0 25px; }
.feature-games button { min-width: 0; padding: 0; color: var(--muted); border: 0; background: transparent; display: grid; justify-items: center; gap: 4px; font-size: 10px; }
.feature-games button:hover { color: var(--accent); }
.feature-games button .icon { width: 25px; height: 25px; color: var(--rose-dim); background: #25131e; border: 1px solid #472a3c; border-radius: 50%; padding: 4px; }
.feature-games button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-action { border-radius: 24px; width: 100%; min-height: 45px; }
.feature-footer { margin-top: 15px; padding: 5px 9px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 33px; border: 1px solid #4e3544; border-radius: 16px; color: var(--muted); font-size: 11px; }
.feature-footer button { border: 0; background: transparent; padding: 0; color: var(--accent); font-weight: 700; }
.feature-footer .icon { width: 12px; height: 12px; }
.showcase-popular { margin-top: 14px; }
.popular-list { display: grid; gap: 10px; }
.popular-item { display: flex; min-height: 84px; width: 100%; gap: 8px; align-items: center; color: var(--text); background: #100a0e; border: 1px solid #684757; border-radius: 19px; padding: 6px; text-align: left; }
.popular-item:hover { border-color: var(--accent); }
.popular-item img, .popular-placeholder { flex: 0 0 62px; min-width: 0; height: 62px; border: 1px solid #7c526a; border-radius: 13px; object-fit: cover; background: #3d2240; }
.popular-placeholder { display: grid; place-items: center; }
.popular-copy { flex: 1; min-width: 0; display: grid; gap: 4px; }
.popular-copy b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popular-copy small { color: var(--muted); font-size: 10px; }
.popular-copy em { justify-self: start; color: #ffb2d2; background: #3d1c2f; border-radius: 8px; padding: 2px 6px; font-size: 10px; font-style: normal; white-space: nowrap; }
.popular-arrow { width: 12px; height: 12px; color: var(--rose-dim); }
.store-main .catalog { margin: 21px 0 0 30px; scroll-margin-top: 12px; }
.store-main #game-categories { scroll-margin-top: 12px; }
.store-main .announcement { margin-left: 30px; width: calc(100% - 30px); }

@media (max-width: 1110px) {
  :root { --side-width: 165px; --top-height: 76px; }
  .sidebar { padding-inline: 11px; }
  .showcase { grid-template-columns: minmax(0, 1fr) minmax(174px, 214px); gap: 10px; }
  .showcase-aside { padding-top: 20px; }
  .showcase-section, .store-main .catalog { margin-left: 12px; }
  .store-main { padding-right: 13px; }
  .store-main .announcement { width: calc(100% - 12px); margin-left: 12px; }
  .rose-hero { height: 325px; }
  .rose-hero h1 { font-size: 40px; }
  .rose-hero h1.custom-title { font-size: 35px; }
  .rose-hero .hero-content { padding-inline: 15px; }
  .showcase-tiles { gap: 6px; }
  .showcase-tile { min-height: 96px; border-radius: 12px; }
  .tile-label b { font-size: 12px; }
  .showcase-feature { padding-inline: 10px; }
}
@media (max-width: 900px) {
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .showcase-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; gap: 11px; padding: 3px 0 0 12px; }
  .showcase-popular { margin-top: 0; }
  .showcase-section { margin-right: 0; }
}
@media (max-width: 700px) {
  :root, .admin-shell { --top-height: 54px; }
  .app-shell { border: 0; border-radius: 0; box-shadow: none; }
  .app-shell:not(.admin-shell) .topbar-left { justify-content: flex-start; }
  .topbar { padding: env(safe-area-inset-top) 8px 0; }
  .topbar .icon-button .icon { width: 16px; height: 16px; }
  .sidebar { border-right: 1px solid var(--rose-frame); }
  .sidebar .nav-link { min-height: 44px; }
  .store-main { padding: 8px 9px 28px; }
  .showcase { gap: 10px; }
  .rose-hero { border-radius: 23px 8px 8px 8px; height: 255px; }
  .rose-hero.reference-art .hero-image { object-fit: cover; object-position: 63% center; }
  .rose-hero.reference-art .hero-shade { background: linear-gradient(90deg, #160a17ee, #160a17ac 40%, #160a1718 89%), linear-gradient(0deg, #10070f, transparent 24%); }
  .rose-hero .hero-content { align-self: center; padding: 10px 10px 8px; }
  .rose-hero p.rose-hero-kicker { margin-left: 12px; font-size: 19px; }
  .rose-hero h1, .rose-hero h1.custom-title { max-width: 84%; font-size: 34px; margin-bottom: 12px; }
  .rose-hero p.rose-subtitle { margin: -5px 0 9px; max-width: 72%; }
  .hero-search { width: min(88%, 345px); }
  .hero-search input { font-size: 16px; }
  .hero-search .button { min-width: 64px; min-height: 32px; }
  .hero-tags { max-width: 100%; margin-top: 5px; row-gap: 3px; }
  .store-main .catalog, .store-main .announcement { margin-left: 0; width: 100%; }
  .store-main .showcase-section, .store-main .showcase-aside, .store-navigation [data-do="browse-games"] { display: none; }
  .store-main .catalog { margin-top: 14px; }
}
@media (max-width: 700px), (max-height: 500px) and (hover: none) and (pointer: coarse) {
  .topbar .site-search { display: none; }
}
@media (max-width: 365px) {
  .experience-shortcut { display: none; }
  .rose-hero h1, .rose-hero h1.custom-title { font-size: 29px; }
  .hero-tags span { display: none; }
}

/* Reserve the available height for navigation before decorative content. */
@media (max-height: 760px) {
  .sidebar .brand { min-height: 62px; margin-bottom: 6px; }
  .sidebar .navigation { gap: 7px; }
  .sidebar .nav-group p { margin-bottom: 5px; }
  .sidebar .nav-link { min-height: 36px; padding-block: 6px; }
  .sidebar .nav-link + .nav-link { margin-top: 1px; }
  .sidebar-bottom { padding-top: 6px; }
}
@media (max-height: 620px) {
  .sidebar .brand { min-height: 54px; margin-bottom: 4px; }
  .sidebar .brand-icon { width: 35px; height: 35px; }
  .sidebar .brand-name strong { font-size: 17px; }
  .sidebar .navigation { gap: 6px; }
  .sidebar .nav-group p { margin-bottom: 4px; }
  .sidebar-foot { display: none; }
  .sidebar-bottom { padding-top: 5px; }
  .admin-shell .sidebar .nav-link { min-height: 36px; }
}
