@font-face { font-family: Fraunces; src: url("fraunces.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: Barlow; src: url("barlow.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url("barlow-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

.kartel-home { --cream:#ffebc5; --night:#11191e; --amber:#ffc45b; --teal:#123d42; background:#0b1419; font-family:Barlow, system-ui, sans-serif; }
.kartel-home select { font-family:inherit; }
.kartel-home .topbar { background:radial-gradient(ellipse at top, #293139, #0b1419 75%); }
.kartel-home .topbar-inner { justify-content:center; }
.home-title { display:flex; align-items:center; gap:clamp(6px, 2vw, 22px); margin:0; color:var(--cream); font:italic 900 clamp(1.65rem, 8.3vw, 6rem)/1.1 Fraunces, Georgia, serif; text-transform:uppercase; text-shadow:0 .075em #0b1419, 0 .11em #c43e30; }
.home-title::before, .home-title::after { content:""; width:clamp(12px, 6vw, 75px); height:.34em; background:repeating-linear-gradient(#c43e30 0 16%, transparent 16% 42%); clip-path:polygon(0 50%, 100% 0, 100% 100%); }
.home-title::after { transform:scaleX(-1); }
.kartel-home main { padding-top:6px; }
.kartel-home .intro { justify-content:center; margin-bottom:12px; text-align:center; }
.kartel-home .intro > div { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 12px; padding:4px 14px; border:1px solid #aa967a; border-radius:9px; color:var(--cream); font-weight:700; }
.kartel-home .intro .eyebrow { margin:0; color:inherit; font:inherit; text-transform:none; letter-spacing:normal; }
.kartel-home .intro .subhead { display:none; }
.kartel-home .resources { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:0; margin-bottom:4px; border:2px solid #c9b297; border-radius:12px; background:var(--night); }
.kartel-home .resource { min-width:0; padding:clamp(4px, 1.3vw, 14px); gap:4px; border:0; border-radius:0; background:none; color:var(--cream); }
.kartel-home .resource + .resource { border-inline-start:1px solid #aa967a; }
.resource-icon { flex:none; width:clamp(23px, 5vw, 54px); height:auto; color:var(--cream); filter:drop-shadow(0 2px 1px #000); }
.kartel-home .resource .label { color:inherit; font-size:clamp(.65rem, 2vw, 1.3rem); text-transform:none; letter-spacing:normal; }
.kartel-home .resource .value { font-size:clamp(1rem, 3.8vw, 2rem); overflow-wrap:anywhere; }
.home-scene { overflow:hidden; border:1px solid #5b5146; border-radius:8px; background:var(--night); color:var(--cream); }
.home-scene .neighborhood { isolation:isolate; aspect-ratio:64 / 55; min-height:0; container-type:inline-size; background:#162638; }
.home-sky, .home-yard, .home-maple, .home-light, .home-foreground {
  position:absolute; inset:0; background-size:100% 100%; pointer-events:none;
  --plate-x:clamp(calc(-1 * var(--plate-limit, .65cqw)), var(--scene-x, 0px), var(--plate-limit, .65cqw));
  --plate-y:clamp(-.65cqw, var(--scene-y, 0px), .65cqw);
  transform:translate(calc(var(--plate-x) * var(--depth)), calc(var(--plate-y) * var(--depth))) scale(var(--plate-scale, 1.018));
}
.home-scene .neighborhood[data-drift] { --plate-limit:.95cqw; --plate-scale:1.024; }
.home-yard { z-index:1; --depth:.42; background-image:url("headquarters-comp-streetscape.webp"); }
.home-sky { z-index:2; --depth:.12; background-image:url("headquarters-comp-sky.webp"); }
.home-maple { z-index:3; --depth:.66; background-image:url("headquarters-comp-maple.webp"); }
.home-light { z-index:4; --depth:.54; background-image:url("headquarters-comp-lamp.webp"); }
.home-scene .neighborhood::before { content:none; }
.home-lamp { position:absolute; inset:4% -1% auto auto; width:12%; aspect-ratio:1; pointer-events:none; background:radial-gradient(circle, #ffc16f65, transparent 70%); animation:window-glow 5s ease-in-out infinite alternate; }
@keyframes window-glow { from { opacity:.4; } to { opacity:.85; } }
.home-scene .placed-assets { inset:auto 4% 49%; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); align-items:end; }
.home-lot-assets { display:flex; min-width:0; align-items:end; justify-content:center; gap:2px; padding-inline:4px; }
.home-scene .placed-asset { position:static; flex:0 1 54%; min-width:0; padding:0; border:0; background:none; color:var(--cream); box-shadow:none; transform:none; }
.home-scene .placed-asset img { display:block; width:100%; height:9cqw; object-fit:contain; object-position:bottom; filter:drop-shadow(0 3px 4px #000c); }
.home-scene .placed-asset[data-kind="mower"] img { height:7cqw; }
.home-scene .placed-asset .home-asset-count, .home-scene .placed-asset .home-asset-label { font-size:clamp(.61rem, 1.55cqw, .95rem); line-height:1.15; }
.home-asset-count { position:relative; margin-top:-3px; padding:1px 4px; border:1px solid #b99059; border-radius:4px; background:#10191ef5; white-space:nowrap; }
.home-lot-assets:has(> :nth-child(3)) .home-asset-label { display:none; }
.home-foreground { z-index:5; --depth:1; --plate-y:0px; display:block; width:100%; height:100%; }
@container (max-width:480px) {
  .home-lot-assets:has(> :nth-child(2)) .home-asset-label { display:none; }
}
.home-scene .placed-summary { margin:6px; padding:8px; border:3px double #6c3e17; border-radius:8px; background:linear-gradient(#ffce6d,#f9a53a); color:#20180f; font-size:clamp(.72rem, 2vw, 1.15rem); font-weight:700; text-align:center; }
.home-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 12px; padding-top:6px; }
.home-reference { margin:0; }
.home-motion:not([hidden]) { display:flex; align-items:center; gap:8px; color:var(--cream); font-size:.8rem; }
.home-motion-toggle { min-height:44px; padding:4px 10px; border:1px solid #aa967a; border-radius:6px; background:#17292e; cursor:pointer; }
.home-motion-toggle[aria-pressed="true"] { background:var(--teal); }
.home-motion-toggle:focus-visible { outline:2px solid var(--cream); outline-offset:2px; }
.home-actions a { min-height:clamp(50px, 9vw, 88px); box-shadow:inset 0 0 0 2px #ffd78b, inset 0 -5px #a95d26; }
.rival-pagination:not([hidden]) { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px; margin-top:8px; }
.rival-pagination .btn { width:auto; min-height:44px; margin:0; }
.rival-pagination .btn:disabled { opacity:.55; cursor:default; }
.home-actions, .home-destinations { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; margin-top:10px; }
.home-destinations { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:0; overflow:hidden; border:1px solid #47939a; border-radius:12px; background:radial-gradient(ellipse at top, #215a5f, var(--teal) 70%); }
.home-actions a, .home-destinations a { display:grid; place-items:center; min-height:44px; padding:8px 2px; border:1px solid #d5a25e; border-radius:9px; background:linear-gradient(#ffd57a, #ffa735); color:#131a1d; font-size:clamp(1.1rem, 4vw, 2rem); font-weight:700; text-decoration:none; transition:transform 150ms ease, box-shadow 150ms ease; }
.destination-icon { width:clamp(20px, 3.8vw, 38px); height:auto; }
.home-destinations a { gap:3px; border:0; border-radius:0; background:transparent; color:var(--cream); font-size:clamp(.8rem, 2.5vw, 1.2rem); }
.home-destinations a + a { border-inline-start:1px solid #47939a; }
.home-actions a:focus-visible, .home-reference a:focus-visible { outline:2px solid var(--cream); outline-offset:3px; }
.home-destinations a:focus-visible { outline:2px solid var(--cream); outline-offset:-3px; }
@media (hover:hover) {
  .home-actions a:hover { transform:scale(1.02); filter:drop-shadow(0 0 6px #ffc45b80); }
  .home-destinations a:hover { background:#2b666b; }
}
.kartel-home .turn-note, .home-reference a { color:var(--cream); }
@media (prefers-reduced-motion:reduce) {
  .home-actions a, .home-destinations a { transition:none; }
  .home-actions a:hover, .home-destinations a:hover { transform:none; }
  .home-lamp { animation:none; }
  .home-sky, .home-yard, .home-maple, .home-light, .home-foreground { --scene-x:0px; --scene-y:0px; }
}
