/* Home services page: 3D house of services, live dispatch map, expanding panels, printed booking ticket and clipboard checklist. */
:root { --hm-green: #1f4d36; --hm-lime: #c6e26b; --hm-deep: #122219; --hm-cream: #f3f1e8; --hm-paper: #fbfaf5; --hm-ink: #122219; --hm-mut: #5d6b62; --hm-line: #e2e0d3; --hm-ease: cubic-bezier(.2, .8, .2, 1); }
.hm-kicker { margin: 0 0 6px; font: 700 .7rem var(--sv-font); letter-spacing: .14em; text-transform: uppercase; color: var(--hm-green); }
.hm-hint { margin: 14px 0 0; font-size: .8rem; color: var(--hm-mut); }
body:has(.hm-house, .hm-dispatch, .hm-panels) main .sv-sec .sv-title::before { content: none !important; display: none !important; }

/* ---------- 3D house of services ---------- */
.hm-house { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.hm-house-scene { position: relative; perspective: 1400px; padding: 40px 10px 20px; }
.hm-house-body { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -18deg)); transition: transform .6s var(--hm-ease); }
.hm-roof { display: block; width: 100%; height: 90px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: linear-gradient(160deg, #2c6a4b, var(--hm-green)); margin-bottom: -2px; filter: drop-shadow(0 -2px 0 rgba(255,255,255,.2)); }
.hm-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; background: var(--hm-deep); border-radius: 0 0 10px 10px; box-shadow: 18px 18px 0 -4px rgba(18,34,25,.18), 0 40px 60px -30px rgba(18,34,25,.6); }
.hm-room { position: relative; display: grid; align-content: end; min-height: 120px; padding: 12px; border: 0; border-radius: 8px; text-align: left; cursor: pointer; background: linear-gradient(160deg, #fff, var(--hm-cream)); transform: translateZ(0); transition: transform .4s var(--hm-ease), background .3s, box-shadow .3s; overflow: hidden; }
.hm-room::before { content: ""; position: absolute; left: 12px; right: 12px; top: 12px; height: 34px; border-radius: 6px; background: linear-gradient(90deg, rgba(31,77,54,.12), rgba(31,77,54,.04)); }
.hm-room.r0::before { background: repeating-linear-gradient(90deg, rgba(31,77,54,.14) 0 14px, transparent 14px 20px); }
.hm-room.r1::before { border-radius: 50% 50% 6px 6px; }
.hm-room.r2::before { width: 40%; left: auto; height: 50px; }
.hm-room.r4::before { height: 10px; top: 30px; }
.hm-room-in b { display: block; font: 800 .95rem var(--sv-font); color: var(--hm-ink); }
.hm-room-in small { font-size: .74rem; color: var(--hm-mut); }
.hm-room em { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 999px; background: var(--hm-lime); color: var(--hm-deep); font: 700 .62rem var(--sv-font); font-style: normal; }
.hm-room:hover { transform: translateZ(20px); }
.hm-room[aria-selected="true"] { background: linear-gradient(160deg, var(--hm-lime), #e2f1a8); transform: translateZ(40px); box-shadow: 0 20px 30px -18px rgba(18,34,25,.7); }
.hm-room:focus-visible { outline: 3px solid var(--hm-lime); outline-offset: 2px; }
.hm-ground { display: block; height: 22px; margin: 0 -8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(18,34,25,.35), transparent); filter: blur(4px); }
.hm-cut { position: absolute; pointer-events: none; filter: drop-shadow(0 20px 16px rgba(18,34,25,.4)); animation: hmDrift 7s ease-in-out infinite; }
.hm-cut.c1 { width: 150px; left: -16%; bottom: -18%; }
.hm-cut.c2 { width: 190px; right: -6%; top: 0; rotate: -8deg; animation-delay: -3s; }
@keyframes hmDrift { 50% { translate: 0 -12px; } }
.hm-info { padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--hm-line); box-shadow: 0 30px 50px -40px rgba(18,34,25,.6); animation: hmIn .45s var(--hm-ease) both; }
.hm-info[hidden] { display: none; }
.hm-info h3 { margin: 0 0 8px; font: 800 1.5rem var(--sv-font); color: var(--hm-ink) !important; }
.hm-info > p:not(.hm-kicker) { margin: 0 0 16px; color: var(--hm-mut); line-height: 1.6; }
.hm-price { display: inline-block; margin-right: 12px; font: 800 1.3rem var(--sv-font); color: var(--hm-green); }
.hm-book { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--hm-deep); color: var(--hm-lime); font: 700 .8rem var(--sv-font); }
@keyframes hmIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Live dispatch map ---------- */
.hm-dispatch { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.hm-map-scene { perspective: 1200px; }
.hm-map { position: relative; border-radius: 24px; overflow: hidden; background: #e9eee4; transform: rotateX(var(--rx, 28deg)) rotateZ(-3deg); transform-origin: 50% 70%; box-shadow: 0 50px 70px -40px rgba(18,34,25,.6); transition: transform .6s var(--hm-ease); }
.hm-map svg { display: block; width: 100%; height: auto; }
.hm-blk { fill: #d8e0cf; }
.hm-road { fill: none; stroke: #fff; stroke-width: 22; stroke-linecap: round; }
.hm-route-bg { fill: none; stroke: rgba(31,77,54,.18); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.hm-route { fill: none; stroke: var(--hm-green); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); transition: stroke-dashoffset .9s var(--hm-ease); }
.hm-home circle { fill: var(--hm-lime); stroke: #fff; stroke-width: 4; }
.hm-home path { fill: var(--hm-deep); }
.hm-van circle { fill: var(--hm-deep); stroke: var(--hm-lime); stroke-width: 3; }
.hm-van path { fill: var(--hm-lime); }
.hm-eta { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: var(--hm-deep); color: var(--hm-lime); font: 700 .74rem var(--sv-font); }
.hm-job { padding: 24px; border-radius: 24px; background: var(--hm-deep); color: #fff; }
.hm-job .hm-kicker { color: var(--hm-lime); }
.hm-job-title { display: block; margin-bottom: 16px; font: 800 1.15rem var(--sv-font); }
.hm-job-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; }
.hm-job-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 14px; opacity: .45; transition: opacity .4s, background .4s; }
.hm-job-steps li.on { opacity: 1; }
.hm-job-steps li.now { background: rgba(198,226,107,.14); }
.hm-job-steps i { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.12); font: 700 .72rem var(--sv-font); font-style: normal; }
.hm-job-steps li.on i { background: var(--hm-lime); color: var(--hm-deep); }
.hm-job-steps strong { display: block; font: 700 .9rem var(--sv-font); }
.hm-job-steps span { font-size: .78rem; color: rgba(255,255,255,.65); }
.hm-replay { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: none; color: #fff; font: 700 .8rem var(--sv-font); cursor: pointer; }

/* ---------- 3D expanding panels ---------- */
.hm-panels { margin-top: 28px; display: flex; gap: 10px; height: 380px; perspective: 1400px; }
.hm-panel { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 20px 16px; border: 0; border-radius: 22px; overflow: hidden; text-align: left; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, rgba(18,34,25,.2), var(--hm-deep)), linear-gradient(160deg, #2c6a4b, var(--hm-green)); transform: rotateY(calc((var(--k) - var(--open, 0)) * 6deg)); transform-origin: 50% 50%; transition: flex-grow .6s var(--hm-ease), transform .6s var(--hm-ease), box-shadow .4s; box-shadow: 0 30px 40px -30px rgba(18,34,25,.7); }
.hm-panel.is-open { flex-grow: 4; transform: translateZ(40px); background: linear-gradient(180deg, rgba(18,34,25,0), rgba(18,34,25,.85)), linear-gradient(160deg, #3b7d58, var(--hm-green)); }
.hm-panel:focus-visible { outline: 3px solid var(--hm-lime); outline-offset: 3px; }
.hm-panel-num { position: absolute; top: 16px; left: 16px; font: 800 .8rem var(--sv-font); color: var(--hm-lime); }
.hm-panel img { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.14); filter: brightness(0) invert(1); }
.hm-panel-title { font: 800 1rem/1.2 var(--sv-font); writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; white-space: nowrap; transition: opacity .3s; }
.hm-panel.is-open .hm-panel-title { writing-mode: horizontal-tb; transform: none; font-size: 1.35rem; white-space: normal; }
.hm-panel-body { display: grid; gap: 6px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--hm-ease), opacity .4s .15s; }
.hm-panel.is-open .hm-panel-body { max-height: 200px; opacity: 1; }
.hm-panel-body b { font: 800 2rem var(--sv-font); color: var(--hm-lime); }
.hm-panel-body span { font-size: .9rem; line-height: 1.55; color: rgba(255,255,255,.85); }

/* ---------- Printed booking ticket (app simulator style) ---------- */
body:has(.hm-ticket-wrap) main .hm-tk-sec .sim { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 30px !important; align-items: start; }
.hm-ticket-wrap { position: relative; display: grid; justify-items: center; padding-top: 10px; perspective: 1200px; }
.hm-slot { display: block; width: min(360px, 92%); height: 22px; border-radius: 12px; background: linear-gradient(#0d1a12, var(--hm-deep)); box-shadow: inset 0 -6px 8px rgba(0,0,0,.5), 0 14px 20px -12px rgba(0,0,0,.5); position: relative; z-index: 2; }
.hm-ticket { position: relative; width: min(320px, 84%); margin-top: -10px; padding: 26px 22px 18px; background: var(--hm-paper); border-radius: 0 0 14px 14px; box-shadow: 0 30px 40px -24px rgba(18,34,25,.55); transform-origin: 50% 0; transform: rotateX(var(--tx, 8deg)) rotateZ(-1.5deg); transition: transform .5s var(--hm-ease); }
.hm-ticket.printing { animation: hmPrint .9s var(--hm-ease) both; }
@keyframes hmPrint { from { clip-path: inset(0 0 100% 0); transform: translateY(-30px); } to { clip-path: inset(0 0 0 0); } }
.hm-tk-top { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px dashed var(--hm-line); }
.hm-tk-top b { font: 800 1rem var(--sv-font); color: var(--hm-ink); }
.hm-tk-top span { padding: 3px 8px; border-radius: 999px; background: var(--hm-lime); color: var(--hm-deep); font: 700 .62rem var(--sv-font); }
.hm-ticket dl { margin: 0; display: grid; gap: 12px; }
.hm-ticket dt { font: 700 .66rem var(--sv-font); letter-spacing: .1em; text-transform: uppercase; color: var(--hm-mut); }
.hm-ticket dd { margin: 2px 0 0; }
.hm-ticket dd b { font: 800 1rem var(--sv-font); color: var(--hm-ink); }
.hm-ticket dd small { display: block; font-size: .78rem; color: var(--hm-mut); }
.hm-tk-meter { display: block; height: 6px; margin-top: 6px; border-radius: 999px; background: var(--hm-cream); overflow: hidden; }
.hm-tk-meter i { display: block; height: 100%; width: 4%; border-radius: inherit; background: var(--hm-green); transition: width .4s; }
.hm-tk-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 12px; padding-top: 12px; border-top: 2px dashed var(--hm-line); }
.hm-tk-total small { font: 700 .72rem var(--sv-font); text-transform: uppercase; letter-spacing: .08em; color: var(--hm-mut); }
.hm-tk-total b { font: 800 1.7rem var(--sv-font); color: var(--hm-green); }
.hm-tk-code { display: block; height: 38px; background: repeating-linear-gradient(90deg, var(--hm-ink) 0 2px, transparent 2px 4px, var(--hm-ink) 4px 7px, transparent 7px 9px, var(--hm-ink) 9px 10px, transparent 10px 13px); opacity: .85; }
.hm-tk-foot { margin: 10px 0 0; text-align: center; font-size: .72rem; color: var(--hm-mut); }
.hm-tk-cut { position: absolute; right: -4%; bottom: 6%; width: 190px; rotate: -24deg; filter: drop-shadow(0 18px 14px rgba(18,34,25,.4)); animation: hmDrift 6s ease-in-out infinite; pointer-events: none; z-index: 3; }

/* ---------- Clipboard checklist (timeline style) ---------- */
.hm-clip { position: relative; max-width: 760px; margin: 34px auto 0; padding: 46px 30px 26px; border-radius: 22px; background: linear-gradient(#c8a46a, #b38b4e); box-shadow: 0 40px 60px -36px rgba(18,34,25,.6); transform: perspective(1400px) rotateX(10deg); }
.hm-clip::before { content: ""; position: absolute; inset: 28px 16px 14px; border-radius: 10px; background: var(--hm-paper); box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.hm-clip-top { position: absolute; top: -14px; left: 50%; width: 150px; height: 44px; margin-left: -75px; border-radius: 12px 12px 16px 16px; background: linear-gradient(#cfd6cc, #8f9a8f); box-shadow: 0 10px 16px -8px rgba(0,0,0,.5); }
.hm-checks { position: relative; list-style: none; margin: 0; padding: 10px 14px; display: grid; gap: 4px; }
.hm-checks li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 8px; border-bottom: 1px solid var(--hm-line); }
.hm-checks li:last-child { border-bottom: 0; }
.hm-box { position: relative; flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--hm-green); transition: background .3s; }
.hm-box::after { content: ""; position: absolute; left: 8px; top: 3px; width: 8px; height: 14px; border: solid var(--hm-deep); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.hm-checks li h3 { position: relative; display: inline-block; margin: 0 0 4px; font: 800 1.02rem var(--sv-font); color: var(--hm-ink) !important; }
.hm-checks li h3::after { content: ""; position: absolute; left: 0; top: 55%; height: 2px; width: 0; background: rgba(31,77,54,.5); transition: width .4s .2s; }
.hm-checks li p { margin: 0; font-size: .88rem; color: var(--hm-mut); line-height: 1.5; }
.hm-clip.in .hm-checks li .hm-box { background: var(--hm-lime); transition-delay: calc(.3s + var(--i) * .5s); }
.hm-clip.in .hm-checks li .hm-box::after { transform: rotate(45deg) scale(1); transition-delay: calc(.4s + var(--i) * .5s); }

@media (max-width: 900px) {
  .hm-house, .hm-dispatch { grid-template-columns: minmax(0, 1fr); }
  .hm-panels { flex-direction: column; height: auto; }
  .hm-panel { min-height: 70px; transform: none; }
  .hm-panel-title { writing-mode: horizontal-tb; transform: none; }
  body:has(.hm-ticket-wrap) main .hm-tk-sec .sim { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 520px) {
  .hm-rooms { grid-template-columns: repeat(2, 1fr); }
  .hm-room { min-height: 96px; }
  .hm-cut.c1 { width: 110px; } .hm-cut.c2 { width: 120px; }
  .hm-clip { padding: 40px 14px 18px; }
  .hm-tk-cut { width: 130px; right: -2%; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-cut, .hm-tk-cut, .hm-ticket.printing, .hm-info { animation: none; }
  .hm-house-body, .hm-panel, .hm-route { transition: none; }
}
@media (max-width: 900px) {
  .hm-panel { padding: 36px 16px 16px; justify-content: flex-start; }
  .hm-panel img { display: none; }
  .hm-panel.is-open .hm-panel-body { max-height: 320px; }
  .hm-panel.is-open .hm-panel-title { font-size: 1.15rem; }
  .hm-house-body { transform: rotateX(8deg) rotateY(-8deg); }
}
@media (max-width: 900px) { .hm-panel, .hm-panel.is-open { flex: none; } }

/* ---------- Live role flow ---------- */
.hm-rf { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.hm-rf-scene { perspective: 1300px; }
.hm-rf-board { position: relative; aspect-ratio: 3 / 2; border-radius: 28px; background: radial-gradient(70% 80% at 50% 55%, #fff, var(--hm-cream)); border: 1px solid var(--hm-line); box-shadow: 0 50px 70px -46px rgba(18,34,25,.55); transform: rotateX(var(--rx, 24deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .6s var(--hm-ease);
  background-image: radial-gradient(70% 80% at 50% 55%, rgba(255,255,255,.95), rgba(243,241,232,.8)), repeating-linear-gradient(0deg, rgba(31,77,54,.06) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, rgba(31,77,54,.06) 0 1px, transparent 1px 28px); }
.hm-rf-loop { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-rf-path-bg { fill: none; stroke: rgba(31,77,54,.12); stroke-width: 14; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hm-rf-path { fill: none; stroke: var(--hm-green); stroke-width: 3; stroke-dasharray: 8 9; stroke-linejoin: round; vector-effect: non-scaling-stroke; animation: hmDash 1.4s linear infinite; }
@keyframes hmDash { to { stroke-dashoffset: -34; } }
.hm-rf-node { position: absolute; z-index: 2; translate: -50% -50%; display: grid; justify-items: center; gap: 4px; width: 150px; padding: 14px 10px; border: 1px solid var(--hm-line); border-radius: 20px; background: #fff; text-align: center; cursor: pointer; transform: translateZ(30px); box-shadow: 0 20px 30px -22px rgba(18,34,25,.6); transition: transform .4s var(--hm-ease), background .3s, border-color .3s; }
.hm-rf-node.n0 { left: 18%; top: 75%; } .hm-rf-node.n1 { left: 50%; top: 22%; } .hm-rf-node.n2 { left: 82%; top: 75%; }
.hm-rf-node i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--hm-cream); color: var(--hm-green); font: 800 1rem var(--sv-font); font-style: normal; }
.hm-rf-node b { font: 800 .95rem var(--sv-font); color: var(--hm-ink); }
.hm-rf-node small { font-size: .72rem; color: var(--hm-mut); }
.hm-rf-node[aria-pressed="true"] { background: var(--hm-deep); border-color: var(--hm-deep); transform: translateZ(70px); }
.hm-rf-node[aria-pressed="true"] i { background: var(--hm-lime); color: var(--hm-deep); }
.hm-rf-node[aria-pressed="true"] b { color: #fff; }
.hm-rf-node[aria-pressed="true"] small { color: rgba(255,255,255,.7); }
.hm-rf-node:focus-visible { outline: 3px solid var(--hm-lime); outline-offset: 3px; }
.hm-rf-token { position: absolute; z-index: 3; left: 18%; top: 75%; translate: -50% -50%; transform: translateZ(90px); pointer-events: none; }
.hm-rf-token b { display: block; padding: 7px 12px; border-radius: 999px; background: var(--hm-lime); color: var(--hm-deep); font: 800 .72rem var(--sv-font); white-space: nowrap; box-shadow: 0 10px 20px -8px rgba(18,34,25,.6); }
.hm-rf-token::before { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(198,226,107,.35); animation: hmPing 1.6s ease-out infinite; z-index: -1; }
@keyframes hmPing { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.hm-rf-card { padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--hm-line); box-shadow: 0 30px 50px -40px rgba(18,34,25,.6); animation: hmIn .45s var(--hm-ease) both; }
.hm-rf-card[hidden] { display: none; }
.hm-rf-card h3 { margin: 0 0 12px; font: 800 1.4rem var(--sv-font); color: var(--hm-ink) !important; }
.hm-rf-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hm-rf-card li { position: relative; padding: 10px 12px 10px 38px; border-radius: 12px; background: var(--hm-cream); font: 600 .86rem var(--sv-font); color: var(--hm-ink); animation: hmIn .4s var(--hm-ease) both; animation-delay: calc(var(--i) * 60ms); }
.hm-rf-card li::before { content: "\2713"; position: absolute; left: 11px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--hm-green); color: #fff; font: 700 .58rem/1 system-ui, sans-serif; }

/* ---------- 3D business model towers ---------- */
.hm-tw { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.hm-tw-scene { display: grid; place-items: center; min-height: 440px; padding-top: 80px; perspective: 1600px; }
.hm-tw-plate { position: relative; display: grid; grid-template-columns: repeat(var(--n), 112px); gap: 34px; padding: 34px; border-radius: 26px; background: linear-gradient(135deg, #e7e5d8, var(--hm-cream)); box-shadow: 30px 30px 0 -6px rgba(18,34,25,.12), 0 30px 60px -20px rgba(18,34,25,.45); transform: rotateX(58deg) rotateZ(-38deg); transform-style: preserve-3d; }
.hm-tower { --h: calc(var(--lv) * 34px); position: relative; width: 112px; height: 112px; padding: 0; border: 0; background: none; cursor: pointer; transform-style: preserve-3d; }
.hm-tower > span:not(.hm-tw-label) { position: absolute; transition: transform .6s var(--hm-ease), background .3s, height .6s var(--hm-ease), width .6s var(--hm-ease); }
.hm-tw-top { inset: 0; border-radius: 6px; background: linear-gradient(135deg, #3b7d58, var(--hm-green)); transform: translateZ(var(--h)); }
.hm-tw-left { left: 0; bottom: 0; width: 100%; height: var(--h); transform-origin: 50% 100%; transform: rotateX(-90deg); background: linear-gradient(0deg, #0f2a1d, #1a4630); }
.hm-tw-right { right: 0; top: 0; width: var(--h); height: 100%; transform-origin: 100% 50%; transform: rotateY(90deg); background: linear-gradient(90deg, #163a28, #0b2016); }
.hm-tower[aria-pressed="true"] { --h: calc(var(--lv) * 34px + 28px); }
.hm-tower[aria-pressed="true"] .hm-tw-top { background: linear-gradient(135deg, #e2f1a8, var(--hm-lime)); }
.hm-tower:hover .hm-tw-top { filter: brightness(1.12); }
.hm-tower:focus-visible .hm-tw-top { outline: 3px solid var(--hm-lime); outline-offset: 4px; }
.hm-tw-label { position: absolute; left: 50%; top: 50%; width: 130px; translate: -50% -50%; padding: 5px 8px; border-radius: 8px; background: rgba(18,34,25,.88); color: #fff; font: 700 .68rem/1.25 var(--sv-font); text-align: center; transform: translateZ(calc(var(--h) + 30px)) rotateZ(38deg) rotateX(-58deg); transition: transform .6s var(--hm-ease); pointer-events: none; }
.hm-tower[aria-pressed="true"] .hm-tw-label { background: var(--hm-lime); color: var(--hm-deep); }
.hm-tw-card { padding: 26px; border-radius: 24px; background: var(--hm-deep); color: #fff; box-shadow: 0 40px 60px -40px rgba(18,34,25,.7); animation: hmIn .45s var(--hm-ease) both; }
.hm-tw-card[hidden] { display: none; }
.hm-tw-card .hm-kicker { color: var(--hm-lime); }
.hm-tw-card h3 { margin: 0 0 8px; font: 800 1.5rem var(--sv-font); color: #fff !important; }
.hm-tw-card > p:not(.hm-kicker) { margin: 0 0 12px; color: rgba(255,255,255,.78); line-height: 1.6; }
.hm-tw-earn { padding: 10px 14px; border-radius: 12px; background: rgba(198,226,107,.12); }
.hm-tw-earn b { color: var(--hm-lime); }
.hm-tw-card small { display: block; margin: 14px 0 8px; font: 700 .68rem var(--sv-font); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hm-tw-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hm-tw-card li { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font: 600 .8rem var(--sv-font); }

@media (max-width: 900px) {
  .hm-rf, .hm-tw { grid-template-columns: minmax(0, 1fr); }
  .hm-tw-plate { grid-template-columns: repeat(2, 104px); gap: 30px; }
  .hm-tower { width: 104px; height: 104px; }
}
@media (max-width: 520px) {
  .hm-rf-node { width: 108px; padding: 10px 6px; }
  .hm-rf-node small { display: none; }
  .hm-rf-token b { font-size: .62rem; padding: 5px 9px; }
  .hm-tw-scene { min-height: 360px; }
  .hm-tw-plate { grid-template-columns: repeat(2, 84px); gap: 26px; padding: 24px; }
  .hm-tower { width: 84px; height: 84px; --h: calc(var(--lv) * 34px); }
  .hm-tower[aria-pressed="true"] { --h: calc(var(--lv) * 34px + 28px); }
  .hm-tw-label { width: 100px; font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-rf-path, .hm-rf-token::before, .hm-rf-card, .hm-rf-card li, .hm-tw-card { animation: none; }
  .hm-tower > span, .hm-rf-board { transition: none; }
}
