/* Home ▸ Overview (components/pages/home_overview.py, ho-): the greeting, three wide picture cards
   Apps · Build · Learn, the news box, and the layout tiles of Profile ▸ Home page layout.
   Each card has a thin line in its own colour (--c); the glow comes on hover only. Tokens as the rest of the app:
   panel rgba(0,0,0,.6), text #e8e8e8, muted #9fb3c8; the route colours are set on #main_view (home_market.css). */
.ho-page { overflow-y: auto; padding: 4px 2vw 26px; color: #e8e8e8; font-size: 15px; line-height: 1.45; }
.ho-page .r-apps { --c: var(--r-apps, #4be9fa); } .ho-page .r-build { --c: var(--r-build, #a78bfa); }
.ho-page .r-learn { --c: var(--r-learn, #f2c14e); } .ho-page .r-news { --c: var(--r-news, #ff8a6b); }

.ho-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 2px 2px 14px; }
.ho-hello h1 { margin: 0; font-size: clamp(1.3rem, 1.85vw, 1.8rem); font-weight: 650; color: #fff; letter-spacing: -.01em;
  text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.ho-hello h1 .q { color: #9fb3c8; font-weight: 400; }
.ho-hello-r { display: flex; align-items: center; gap: 10px; }
.ho-note { color: #9fb3c8; font-size: .84rem; max-width: 520px; }

/* ---- the three cards ---- */
.ho-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ho-door { position: relative; display: flex; flex-direction: column; min-height: 486px; border-radius: 20px; overflow: hidden;
  background: rgba(0,0,0,.6); border: 1px solid color-mix(in srgb, var(--c) 46%, transparent); cursor: pointer;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s; }
.ho-door:hover { transform: translateY(-5px); border-color: var(--c);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 30px -8px var(--c), 0 26px 60px -30px var(--c); }
.ho-vis { position: relative; height: 248px; overflow: hidden; background: #05090f; flex: none; }
.ho-tag { display: inline-flex; align-items: center; gap: 9px; padding: 6px 15px; border-radius: 999px; background: rgba(0,0,0,.74);
  border: 1px solid var(--c); color: var(--c); font-weight: 750; font-size: .84rem; letter-spacing: .13em;
  text-transform: uppercase; backdrop-filter: blur(6px); white-space: nowrap;
  text-shadow: 0 0 9px color-mix(in srgb, var(--c) 80%, transparent);
  box-shadow: 0 0 13px -2px color-mix(in srgb, var(--c) 70%, transparent), inset 0 0 9px -3px color-mix(in srgb, var(--c) 60%, transparent); }
.ho-vis > .ho-tag { position: absolute; left: 16px; top: 14px; z-index: 3; }
.ho-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 12px 20px 18px; }
.ho-door h2 { margin: 0; font-size: 1.36rem; line-height: 1.2; color: #fff; font-weight: 650; letter-spacing: -.01em; }
.ho-door p { margin: 0; color: #b9c7d6; }
.ho-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ho-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: #cfd9e4;
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: inherit; line-height: 1.45; }
.ho-chip i { font-size: .74rem; color: var(--c); opacity: .9; }
.ho-chip:hover { border-color: var(--c, #fff); color: #fff; }
.ho-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.1); }
.ho-stat { font-size: .84rem; color: #9fb3c8; min-width: 0; flex: 1 1 0; }
.ho-stat b { color: #fff; font-weight: 600; }
.ho-stat .l { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.ho-go { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 11px; font-weight: 700;
  font-size: .92rem; white-space: nowrap; cursor: pointer; font-family: inherit; color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent);
  transition: background .2s, color .2s, border-color .2s; }
.ho-door:hover .ho-go, .ho-go:hover { background: var(--c); color: #06101a; }
.ho-go.quiet, .ho-door:hover .ho-go.quiet { background: transparent; border-color: rgba(255,255,255,.14); color: #cfd9e4; }
.ho-go.quiet:hover, .ho-door:hover .ho-go.quiet:hover { background: rgba(255,255,255,.07); color: #fff;
  border-color: color-mix(in srgb, var(--c) 55%, transparent); }

/* pictures fanned out (Apps: three apps; Learn: the whole map and the galaxy) */
.ho-fan { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--c) 16%, transparent), transparent 65%); }
.ho-fan img { position: absolute; width: 56%; border-radius: 10px; border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 30px rgba(0,0,0,.65); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.ho-fan img:nth-child(1) { left: 2%; top: 22%; transform: rotate(-7deg); }
.ho-fan img:nth-child(2) { left: 22%; top: 9%; z-index: 2; }
.ho-fan img:nth-child(3) { left: 42%; top: 22%; transform: rotate(7deg); }
.ho-door:hover .ho-fan img:nth-child(1) { transform: rotate(-11deg) translate(-16px, -4px); }
.ho-door:hover .ho-fan img:nth-child(2) { transform: translateY(-7px) scale(1.04); }
.ho-door:hover .ho-fan img:nth-child(3) { transform: rotate(11deg) translate(16px, -4px); }
.ho-fan.two img { width: 57%; }
.ho-fan.two img:nth-child(1) { left: 3%; top: 19%; transform: rotate(-5deg); z-index: 1; }
.ho-fan.two img:nth-child(2) { left: 40%; top: 12%; transform: rotate(5deg); z-index: 2; }
.ho-door:hover .ho-fan.two img:nth-child(1) { transform: rotate(-8deg) translate(-12px, -4px); }
.ho-door:hover .ho-fan.two img:nth-child(2) { transform: rotate(8deg) translate(12px, -6px) scale(1.03); }
.ho-vis::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(2,8,16,0) 62%, rgba(2,8,16,.9)); }

/* Build: the three steps as tiles of unequal width; the one under the pointer opens wide */
.ho-steps3 { position: absolute; inset: 0; z-index: 1; display: flex; align-items: stretch; gap: 8px; padding: 54px 14px 16px;
  background: radial-gradient(ellipse at 50% 80%, color-mix(in srgb, var(--c) 16%, transparent), transparent 65%); }
.ho-steps3 > i { align-self: center; flex: none; font-size: .78rem; color: var(--c); }
.ho-s3 { position: relative; flex: var(--f, 1) 1 0; min-width: 0; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.18); background: #070c14; box-shadow: 0 12px 26px rgba(0,0,0,.6);
  transition: flex-grow .5s cubic-bezier(.2,.7,.2,1), border-color .3s; }
.ho-steps3:not(:hover) .ho-s3 { min-width: 74px; }
.ho-s3 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.ho-s3 img.big { opacity: 0; }
.ho-steps3:hover .ho-s3 { flex-grow: .42; }
.ho-steps3 .ho-s3:hover { flex-grow: 4.4; border-color: var(--c); }
.ho-s3:hover img.big { opacity: 1; } .ho-s3:hover img.sm { opacity: 0; }
.ho-s3 span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 9px 7px; display: flex; gap: 7px; align-items: center;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.95)); font-weight: 700; font-size: .84rem; color: #fff;
  white-space: nowrap; overflow: hidden; }
.ho-s3 span em { font-style: normal; font-weight: 400; color: #c4d0dc; display: none; }
.ho-s3:hover span em { display: inline; }
.ho-s3 .num { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; flex: none;
  border-radius: 50%; font-size: .7rem; background: var(--c); color: #100a24; }
.ho-door.r-build .ho-vis::after { display: none; }

/* ---- the news: one wide, low box of the same family ---- */
.ho-deskbox { margin-top: 16px; border-radius: 20px; background: rgba(0,0,0,.6); padding: 13px 16px 15px;
  border: 1px solid color-mix(in srgb, var(--c) 46%, transparent); transition: box-shadow .3s, border-color .3s; }
.ho-deskbox:hover { border-color: var(--c);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 30px -8px var(--c), 0 26px 60px -30px var(--c); }
.ho-desk-h { display: flex; align-items: center; gap: 12px; margin: 0 0 11px; }
.ho-desk-h small { font-size: .9rem; color: #b9c7d6; min-width: 0; }
.ho-all { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--c); font-weight: 650;
  font-size: .88rem; cursor: pointer; white-space: nowrap; }
.ho-all:hover { color: #fff; }
.ho-desk-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ho-story { display: flex; flex-direction: row; align-items: stretch; padding: 0; text-align: left; font-family: inherit;
  border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: inherit; cursor: pointer; transition: border-color .25s, transform .25s; }
.ho-story:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-3px); }
.ho-ph { width: 104px; min-height: 92px; flex: none; position: relative; overflow: hidden; background: #05090f;
  display: flex; align-items: center; justify-content: center; color: var(--c); font-size: 1.5rem; }
.ho-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.ho-tx { display: flex; flex-direction: column; gap: 5px; padding: 9px 12px 10px; min-width: 0; flex: 1; }
.ho-k { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 750; color: var(--c); }
.ho-story h4 { margin: 0; font-size: .95rem; line-height: 1.3; color: #fff; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ho-by { margin-top: auto; display: flex; gap: 6px; align-items: center; font-size: .76rem; color: #9fb3c8; }
.ho-news .hn-box { margin-top: 4px; }

@media (max-width: 1280px) {
  .ho-door { min-height: 452px; } .ho-vis { height: 214px; } .ho-door h2 { font-size: 1.16rem; }
  .ho-desk-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) { .ho-doors { grid-template-columns: 1fr; } }
@media (max-height: 820px) { .ho-door { min-height: 430px; } .ho-vis { height: 204px; } }

/* a destination the navigation just scrolled to (home_overview.js) */
.ho-flash { animation: ho-flash 1.6s ease-out 1; border-radius: 8px; }
@keyframes ho-flash { 0% { box-shadow: 0 0 0 3px rgba(240,160,48,.85); } 100% { box-shadow: 0 0 0 3px rgba(240,160,48,0); } }

/* ---- Profile ▸ Home page layout ---- */
.ho-lays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ho-lay { position: relative; display: flex; flex-direction: column; text-align: left; padding: 8px 8px 11px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: inherit; font-family: inherit;
  cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.ho-lay:hover { border-color: rgba(255,255,255,.4); }
.ho-lay.on { border-color: #f0a030; box-shadow: 0 0 0 1px #f0a030, 0 0 24px -8px #f0a030; }
.ho-lay-ph { border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); aspect-ratio: 16 / 10; background: #05090f; }
.ho-lay-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ho-lay-t { margin: 8px 4px 0; }
.ho-lay-t .pk-tt { display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; }
.ho-lay-t .pk-tt i { color: #f0a030; font-size: .86rem; }
.ho-lay-t .pk-td { color: #9fb3c8; font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.ho-lay-d { margin-left: auto; font-size: .62rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  padding: 1px 7px; border-radius: 999px; color: #f0a030; border: 1px solid rgba(240,160,48,.7); }
.ho-lay-ck { position: absolute; left: 14px; top: 14px; display: none; color: #f0a030; font-size: 1.15rem;
  background: #0a0f15; border-radius: 50%; }
.ho-lay.on .ho-lay-ck { display: block; }
