:root {
  --home-bg: #f5f7f8;
  --home-surface: #ffffff;
  --home-ink: #17212b;
  --home-muted: #66717d;
  --home-line: #dfe4e8;
  --home-brand: #176b5b;
  --home-brand-dark: #105347;
  --home-blue: #235f9c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.business-home { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--home-bg) !important; color: var(--home-ink) !important; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
body.business-home::before { display: none !important; }
.business-home a { color: inherit; }

.home-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 28px; width: 100%; min-height: 70px; padding: 10px max(28px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(223,228,232,.92); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); }
.home-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--home-ink); text-decoration: none; }
.home-brand span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 6px; background: var(--home-brand); color: #fff; font-weight: 850; }
.home-brand > img { display: block; width: 38px; height: 38px; border: 1px solid #d9e0e4; border-radius: 6px; background: #fff; object-fit: cover; }
.home-brand strong { max-width: 230px; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.home-nav nav { display: flex; align-items: center; gap: 7px; }
.home-nav nav a { padding: 9px 12px; border-radius: 5px; color: #4f5d68; font-size: 13px; font-weight: 700; text-decoration: none; }
.home-nav nav a:hover { background: #edf3f1; color: var(--home-brand); }

.business-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 58px; }
.business-hero { position: relative; display: flex; min-height: 360px; align-items: flex-end; overflow: hidden; padding: 36px; border-radius: 8px; isolation: isolate; background: #14232b; box-shadow: 0 16px 40px rgba(16,24,32,.12); }
.business-hero::before { content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 38%; height: 100%; border-left: 1px solid rgba(255,255,255,.08); background: #1b3038; }
.hero-mark { position: absolute; z-index: 0; top: 50%; right: 42px; width: 34%; color: #fff; text-align: right; transform: translateY(-50%); }
.hero-mark strong { display: block; overflow-wrap: anywhere; font-size: 72px; line-height: .95; font-weight: 900; opacity: .09; }
.hero-mark span { display: block; margin-top: 14px; font-size: 12px; font-weight: 800; opacity: .2; }
.hero-content { position: relative; z-index: 1; width: min(760px,100%); color: #fff; }
.hero-kicker, .eyebrow-dark { margin: 0 0 10px; color: var(--home-brand); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.business-hero .hero-kicker { color: #81d6c3; }
.business-hero h1 { margin: 0; color: #fff; font-size: 42px; line-height: 1.08; font-weight: 850; }
.business-hero .hero-content > p:not(.hero-kicker) { max-width: 630px; margin: 15px 0 0; color: #d6e0e5; font-size: 16px; line-height: 1.65; }
.hero-actions, .panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 25px; border-top: 1px solid rgba(255,255,255,.22); }
.hero-facts div { min-width: 145px; padding: 17px 28px 0 0; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { color: #fff; font-size: 22px; }
.hero-facts span { margin-top: 3px; color: #afbdc5; font-size: 11px; font-weight: 650; }

.business-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 5px; font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.business-btn:hover { transform: translateY(-1px); }
.business-btn.primary, .business-btn.blue { background: var(--home-brand); color: #fff; }
.business-btn.primary:hover, .business-btn.blue:hover { background: var(--home-brand-dark); }
.business-btn.secondary { border-color: #cfd6db; background: #fff; color: var(--home-ink); }
.business-hero .business-btn.secondary { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.1); color: #fff; }
.business-btn.red { background: #b8322a; color: #fff; }
.business-btn.orange { background: #b65f16; color: #fff; }
.business-btn.green { background: #238164; color: #fff; }
.business-btn.custom-color { border-color: color-mix(in srgb, var(--button-bg) 82%, #000); background: var(--button-bg); color: var(--button-text); }
.business-btn.custom-color:hover { background: color-mix(in srgb, var(--button-bg) 88%, #000); }

.section-block { margin-top: 44px; scroll-margin-top: 90px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 19px; }
.block-head h2, .business-panel h2, .business-donate h2, .business-detail h2 { margin: 0; color: var(--home-ink); font-size: 23px; line-height: 1.3; }
.block-head > p, .business-detail p, .business-donate p { color: var(--home-muted); line-height: 1.6; }
.block-head > p { max-width: 420px; margin: 0; font-size: 13px; }

.business-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.business-card { position: relative; display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid var(--home-line); border-radius: 7px; background: var(--home-surface); cursor: pointer; box-shadow: 0 5px 18px rgba(16,24,32,.045); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.business-card:hover, .business-card.active { transform: translateY(-3px); border-color: #90b9ad; box-shadow: 0 14px 30px rgba(16,24,32,.1); }
.business-card.active::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--home-brand); }
.business-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--art); }
.business-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; transition: transform .3s ease; }
.business-card:hover .business-thumb img { transform: scale(1.025); }
.thumb-placeholder { display: grid; width: 100%; height: 100%; place-content: center; gap: 7px; background: rgba(12,24,30,.22); }
.thumb-placeholder span { display: block; width: 112px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.72); }
.thumb-placeholder span:nth-child(2) { width: 78px; }
.thumb-placeholder span:nth-child(3) { width: 96px; }
.card-body { display: flex; min-height: 154px; padding: 17px; flex: 1; flex-direction: column; }
.card-body h3 { margin: 0; overflow-wrap: anywhere; color: var(--home-ink); font-size: 14px; line-height: 1.4; font-weight: 800; }
.card-body p { margin: 11px 0 0; color: var(--home-muted); font-size: 12px; line-height: 1.5; }
.business-tag { display: inline-flex; width: fit-content; margin-top: 9px; padding: 3px 7px; border: 1px solid #cde1dc; border-radius: 4px; background: #eff7f5; color: var(--home-brand); font-size: 9px; font-weight: 850; }
.business-tag.maintenance { margin-left: 5px; border-color: #efd8ab; background: #fff7e8; color: #9a5a08; }
.card-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; color: var(--home-brand); font-size: 11px; font-weight: 800; }
.card-link b { font-size: 19px; font-weight: 400; }

.business-detail { position: fixed; z-index: 41; top: 50%; left: 50%; display: grid; width: min(920px,calc(100% - 32px)); max-height: calc(100dvh - 40px); grid-template-columns: minmax(0,1fr) minmax(330px,420px); gap: 25px; align-items: center; margin: 0; padding: 28px; overflow-y: auto; border: 1px solid #cbded9; border-radius: 8px; background: #f0f7f5; box-shadow: 0 24px 70px rgba(16,24,32,.25); transform: translate(-50%,-50%); }
.business-detail[hidden] { display: none; }
.game-detail-backdrop { position: fixed; z-index: 40; inset: 0; background: rgba(10,20,25,.62); backdrop-filter: blur(2px); }
.game-detail-backdrop[hidden] { display: none; }
.game-detail-open { overflow: hidden; }
.detail-close { position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid #cbd9d5; border-radius: 50%; background: #fff; color: #52646b; font-size: 22px; line-height: 1; cursor: pointer; }
.detail-close:hover { border-color: #176b5b; background: #eaf4f1; color: #176b5b; }
.detail-copy { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 20px; align-items: center; }
.detail-slideshow { position: relative; width: 100%; overflow: hidden; aspect-ratio: 16/10; border: 1px solid #c7d7d3; border-radius: 6px; background: #e2ece9; }
.detail-slideshow img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; opacity: 0; transition: opacity .25s ease; }
.detail-slideshow img.active { opacity: 1; }
.business-detail p { margin: 8px 0 0; font-size: 13px; }
.detail-actions { display: grid; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; align-self: center; }
.detail-actions[data-count="1"] { grid-template-columns: 1fr; }
.detail-actions .business-btn { min-width: 0; padding-inline: 11px; overflow-wrap: anywhere; text-align: center; }
.maintenance-message { display: grid; grid-column: 1/-1; gap: 4px; min-width: 190px; padding: 14px; border: 1px solid #e9cf9c; border-radius: 6px; background: #fff8eb; color: #80500d; }
.maintenance-message strong { font-size: 13px; }
.maintenance-message span { font-size: 11px; }

.business-panels { display: grid; grid-template-columns: 1.12fr .88fr; gap: 16px; margin-top: 42px; }
.business-panel, .business-donate { border: 1px solid var(--home-line); border-radius: 7px; background: var(--home-surface); box-shadow: 0 5px 18px rgba(16,24,32,.04); }
.business-panel { min-height: 210px; padding: 24px; scroll-margin-top: 88px; }
.panel-actions { margin-top: 24px; }
.community-clean { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 24px; }
.community-clean a { display: flex; min-height: 42px; align-items: center; justify-content: space-between; padding: 0 12px; border: 1px solid var(--home-line); border-radius: 5px; color: #35434e; font-size: 12px; font-weight: 750; text-decoration: none; }
.community-clean a::after { content: "›"; color: #89959e; font-size: 18px; font-weight: 400; }
.community-clean a:hover { border-color: #96b9b0; background: #f1f7f5; color: var(--home-brand); }
.business-donate { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 16px; padding: 24px; }
.business-donate p { max-width: 720px; margin: 8px 0 0; font-size: 13px; }

.home-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px max(28px, calc((100vw - 1180px) / 2)); border-top: 1px solid #26343d; background: #152129; color: #fff; }
.footer-brand { color: #fff; }
.home-footer p { margin: 8px 0 0; color: #9cabb4; font-size: 12px; }
.home-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.home-footer nav a { color: #b8c3ca; font-size: 12px; font-weight: 650; text-decoration: none; }
.home-footer nav a:hover { color: #fff; }

.floating-support { position: fixed; right: 24px; bottom: 20px; z-index: 1000; display: grid; justify-items: end; gap: 12px; }
.support-trigger { position: relative; display: grid; width: 52px; height: 52px; min-width: 52px; min-height: 52px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #0756a3; color: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.28); cursor: pointer; transition: transform .16s ease, background .16s ease; }
.support-trigger:hover { transform: translateY(-2px); background: #064887; }
.support-chat-icon { position: relative; display: block; width: 24px; height: 19px; border: 2px solid currentColor; border-radius: 7px; }
.support-chat-icon::after { content: ""; position: absolute; left: 3px; bottom: -6px; width: 7px; height: 7px; border-left: 2px solid currentColor; transform: skew(-28deg); }
.support-chat-icon::before { content: "•••"; position: absolute; inset: -7px 0 0; font-size: 15px; letter-spacing: 1px; }
.support-close-icon { display: none; font-size: 31px; font-weight: 300; line-height: 1; }
.support-trigger.active .support-chat-icon { display: none; }
.support-trigger.active .support-close-icon { display: block; }
.support-menu { width: min(320px,calc(100vw - 32px)); overflow: hidden; border: 1px solid #dce2e6; border-radius: 7px; background: #fff; box-shadow: 0 18px 50px rgba(15,23,42,.18); transform-origin: right bottom; animation: support-in .16s ease-out; }
.support-menu-head { padding: 17px 18px; border-bottom: 1px solid #e5e7eb; background: #f7f9f9; }
.support-menu-head strong, .support-menu-head span { display: block; }
.support-menu-head strong { color: var(--home-ink); font-size: 14px; }
.support-menu-head span { margin-top: 4px; color: var(--home-muted); font-size: 11px; }
.support-menu-list { display: grid; padding: 7px; }
.support-empty { margin: 0; padding: 18px 12px; color: var(--home-muted); font-size: 12px; text-align: center; }
.support-menu-list a { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 11px; align-items: center; min-height: 58px; padding: 8px 10px; border-radius: 5px; color: var(--home-ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.support-menu-list a:hover { background: #eef6f4; }
.support-menu-list img, .support-fallback { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #dce2e6; border-radius: 50%; object-fit: cover; }
.support-fallback { background: var(--home-brand); color: #fff; font-size: 16px; }
.support-menu-list b { color: #8b98a3; font-size: 22px; font-weight: 400; }
@keyframes support-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .business-shell { width: min(100% - 28px,1180px); }
  .business-hero { min-height: 350px; padding: 30px; }
  .business-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .business-detail, .business-panels { grid-template-columns: 1fr; }
  .detail-actions { min-width: 0; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  .home-nav { display: grid; grid-template-columns: 1fr; gap: 8px; min-height: 0; padding: 9px 14px 8px; }
  .home-nav nav { display: flex; width: 100%; gap: 4px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .home-nav nav::-webkit-scrollbar { display: none; }
  .home-nav nav a { flex: 0 0 auto; min-height: 34px; padding: 8px 10px; }
  .home-brand span { width: 34px; height: 34px; }
  .business-shell { padding-top: 14px; }
  .business-hero { min-height: 330px; padding: 20px 17px; background-position: center; }
  .hero-mark { display: none; }
  .business-hero h1 { font-size: 30px; }
  .business-hero .hero-content > p:not(.hero-kicker) { margin-top: 9px; font-size: 13px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-top: 17px; }
  .panel-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .business-btn { width: 100%; }
  .hero-facts { display: grid; grid-template-columns: repeat(3,1fr); }
  .hero-facts { margin-top: 20px; }
  .hero-facts div { min-width: 0; padding: 12px 8px 0 0; }
  .hero-facts strong { font-size: 18px; }
  .hero-facts span { font-size: 9px; }
  .block-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .business-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .detail-copy, .community-clean { grid-template-columns: 1fr; }
  .card-body { min-height: 132px; padding: 12px; }
  .card-body h3 { font-size: 12px; line-height: 1.35; }
  .card-body p { display: none; }
  .business-tag { margin-top: 7px; padding: 3px 5px; font-size: 8px; }
  .card-link { padding-top: 11px; font-size: 10px; }
  .card-link b { font-size: 17px; }
  .business-detail { width: min(100% - 20px,920px); max-height: calc(100dvh - 24px); padding: 32px 16px 16px; }
  .detail-actions { grid-template-columns: 1fr; }
  .business-donate { align-items: flex-start; flex-direction: column; }
  .home-footer { padding-inline: 20px; }
  .home-footer nav { gap: 14px; }
  .floating-support { right: 18px; bottom: 18px; }
  .support-trigger { width: 50px; height: 50px; min-width: 50px; min-height: 50px; }
}

@media (max-width: 420px) {
  .business-shell { width: min(100% - 20px,1180px); }
  .business-hero { min-height: 315px; padding: 18px 14px; }
  .business-hero h1 { font-size: 28px; }
  .hero-actions { gap: 7px; }
  .hero-actions .business-btn { padding-inline: 8px; font-size: 11px; }
  .hero-facts div { padding-top: 11px; }
  .block-head h2, .business-panel h2, .business-donate h2, .business-detail h2 { font-size: 20px; }
  .business-panel, .business-donate { padding: 18px; }
  .business-grid { gap: 8px; }
  .card-body { min-height: 124px; padding: 10px; }
  .card-body h3 { font-size: 11px; }
  .card-link { font-size: 9px; }
  .support-menu { width: calc(100vw - 24px); }
  .home-footer { padding-inline: 16px; }
}
