/* Halloween Home: component materials and proportions of the approved concept.
   Every label, counter, image, sponsor link and control remains real DOM. */
body.home-view-active[data-skin-atlas="halloween"] #nowView [data-skin-atlas-home-frame] > header::after {
  content: none !important; display: none !important;
}
/* The frame already owns its ornament. Suppress the old theme's independent
   bat as well as atlas overlays, including in compact layouts. */
body.home-view-active[data-skin-atlas="halloween"] #nowView [data-skin-atlas-home-frame]::before {
  content: none !important; display: none !important;
}
@media (min-width: 1200px) {
  body.home-view-active[data-skin-atlas="halloween"] {
    --shell-top: 79px; --shell-rail: clamp(221px, 15.11vw, 258px);
    --home-aside-width: clamp(300px, 21.38vw, 360px);
  }
  body.home-view-active[data-skin-atlas="halloween"] .workspace { padding: 2px 3px 8px 8px; column-gap: 12px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView {
    column-gap: 6px; row-gap: 4px;
    grid-template-rows: minmax(170px,264fr) minmax(64px,84fr) minmax(200px,265fr) minmax(170px,216fr);
  }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-home-aside {
    gap: 5px; grid-template-rows: minmax(180px,266fr) minmax(180px,280fr) minmax(210px,285fr);
  }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-bottom-grid { gap: 6px; align-items: stretch; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-bottom-grid > * { height: 100% !important; }
  body[data-skin-atlas="halloween"] .app-sidebar.rail { gap: 5px; padding: 9px 7px; }
  body[data-skin-atlas="halloween"] .rail-primary,
  body[data-skin-atlas="halloween"] .rail-secondary { gap: 2px; padding-bottom: 8px; }
  body[data-skin-atlas="halloween"] .app-sidebar .rail-item { height: 45px; min-height: 45px; }
  body[data-skin-atlas="halloween"] .rail-primary > .rail-item:first-child { height: 57px; min-height: 57px; }
  body[data-skin-atlas="halloween"] .app-sidebar .rail-item b { font-size: 16px; }
  body[data-skin-atlas="halloween"] .app-sidebar .home-sidebar-sponsor {
    flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: 224 / 203;
    min-height: 0; max-height: none; margin-top: auto; padding: 0;
  }
  body.home-view-active[data-skin-atlas="halloween"] .home-sidebar-sponsor[data-skin-house="true"] {
    background-size: contain !important; background-position: center !important;
  }
  body[data-skin-atlas="halloween"] .app-sidebar .profile-chip { min-height: 100px; height: 100px; padding: 9px 10px; grid-template-rows: 36px 36px; gap: 7px; border: 0 !important; box-shadow: none !important; }
  body[data-skin-atlas="halloween"] .app-sidebar .profile-quick-controls > button { height: 36px; }
  body[data-skin-atlas="halloween"] .app-sidebar .rail-collapse-button { bottom: 117px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-home-hero {
    padding: 10px 12px; background-origin: content-box; background-clip: content-box;
  }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-home-copy {
    position: absolute; inset: 0 auto 0 0; width: 65%; height: 100%;
    justify-content: flex-start; padding: 24px 29px;
  }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-home-copy > span { font-size: 10px; line-height: 12px; letter-spacing: .36em; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-home-copy h1 {
    font-size: clamp(38px,2.885vw,50px); line-height: 1; margin: 16px 0 6px; letter-spacing: -.025em;
  }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-home-copy h1 strong { color: #ff7c1a !important; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-home-copy p { font-size: 16px; line-height: 1.35; max-width: none; white-space: nowrap; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .now-actions { margin-top: 17px; gap: 18px; flex-wrap: nowrap !important; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .now-actions > button {
    flex: 0 1 261px; width: 261px; max-width: none; height: 50px; padding-inline: 18px;
    font-size: 16px; gap: 12px; font-weight: 700;
  }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-metrics { gap: 6px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-metrics > div { padding: 12px 18px; grid-template-columns: 51px minmax(0,1fr); column-gap: 14px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-metrics strong { font-size: 28px; line-height: 1.1; font-weight: 650; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-metrics > div > span:last-child { font-size: 13px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-panel > header {
    margin: 9px 24px 0; min-height: 33px; height: 33px; padding-inline: 2px;
    background: transparent !important;
  }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-panel h2 { font-size: clamp(14px,1vw,16px); font-weight: 700; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-panel header button { font-size: 12px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-live-strip {
    margin: 0 var(--atlas-edge-right) var(--atlas-edge-bottom) var(--atlas-edge-left) !important;
    padding: 7px 0 0 !important; gap: 9px;
  }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-live-card { border-radius: 8px !important; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-live-card > div:last-child { padding: 8px 9px; gap: 3px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-live-card strong { font-size: 14px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-live-card small { font-size: 12px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-live-tags { margin-top: 3px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-live-tags i { font-size: 10px; padding: 2px 5px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-server-card { min-height: 45px; padding: 5px 8px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-server-grid { padding: 6px 0 0; gap: 5px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-server-card strong { font-size: 14px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-server-card small { font-size: 12px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-friend-row { min-height: 55px; padding: 8px 0; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-friend-row strong { font-size: 14px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-friend-row small { font-size: 12px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .home-friend-search {
    height: 40px; margin-block: 7px 4px; padding: 0 12px;
    border: 1px solid #6c4a30 !important; border-radius: 8px;
    background: linear-gradient(#0b0b0b,#101010) !important; box-shadow: inset 0 1px #ffffff09 !important;
  }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .home-friend-search::after { display: none !important; content: none !important; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .home-friend-search svg { color: #ed913a; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-event-row { padding: 9px 0; min-height: 62px; background: transparent !important; border-width: 0 0 1px !important; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-event-row strong { font-size: 14px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-event-row small { font-size: 12px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-news-panel > .approved-panel-body { padding: 6px 4px 4px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-news-row { min-height: 56px; gap: 12px; padding-block: 4px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-news-row strong { font-size: 14px; line-height: 1.3; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-news-row small { font-size: 12px; line-height: 1.45; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-news-row > span:first-child { width: 43px; height: 43px; color: #a94eff !important; background: linear-gradient(#241e37,#17131f) !important; border-color: #503365 !important; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-news-row:nth-child(2) > span:first-child { color: #4c9eff !important; background: linear-gradient(#172a45,#101927) !important; border-color: #274e7e !important; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-news-row:nth-child(3) > span:first-child { color: #ff3596 !important; background: linear-gradient(#37142b,#1c1019) !important; border-color: #742348 !important; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView :is(.approved-friend-row,.approved-event-row) > button {
    border: 1px solid #45413c !important; border-radius: 6px;
    background: linear-gradient(#202020,#121212) !important; color: #ee9c4e;
    box-shadow: inset 0 1px #ffffff08;
  }
  body.home-view-active[data-skin-atlas="halloween"] #nowView :is(.approved-friend-row,.approved-event-row) > button:hover { border-color: #d27c2c !important; background: linear-gradient(#362518,#21160f) !important; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView :is(.approved-friend-row,.approved-event-row) > button svg { width: 17px; height: 17px; }
}
/* A short, non-interactive footer carries the concept's carved corner art,
   never its DEMO label or the "not implemented" caption. */
@media (min-width: 1200px) and (min-height: 850px) {
  body.home-view-active[data-skin-atlas="halloween"] .app-shell {
    padding-bottom: 44px;
    background-image: var(--home-footerLeft),var(--home-footerRight),var(--home-footerMiddle),linear-gradient(#090706,#090706) !important;
    background-position: left bottom,right bottom,center bottom,center !important;
    background-size: 150px 52px,150px 52px,calc(100% - 300px) 28px,auto !important;
    background-repeat: no-repeat !important;
  }
  body.home-view-active[data-skin-atlas="halloween"] #nowView { height: calc(100% - 12px); }
}
@media (min-width: 1200px) {
  body[data-skin-atlas="halloween"] .titlebar { grid-template-columns: 311px minmax(320px,586px) minmax(0,1fr); column-gap: 72px; padding: 0 24px 0 0; }
  body[data-skin-atlas="halloween"] .titlebar .brand-lockup { width: 311px; min-height: 0 !important; height: 100% !important; padding: 2px 14px 2px 30px !important; }
  body[data-skin-atlas="halloween"] .titlebar .brand-logo { width: 267px; height: 74px; max-height: 74px; max-width: none; }
  body[data-skin-atlas="halloween"] .global-search { height: 49px; }
  body[data-skin-atlas="halloween"] .titlebar .window-actions { gap: 8px; }
  body[data-skin-atlas="halloween"] .titlebar {
    background-image: var(--home-headerDecor),linear-gradient(#0006,#0006),url('/themes/halloween/assets/walnut.png') !important;
    background-position: 1000px center,center,center !important;
    background-size: 118px 60px,auto,600px auto !important;
    background-repeat: no-repeat,no-repeat,repeat !important;
  }
}
body.home-view-active[data-skin-atlas="halloween"] #nowView [data-home-material="metric"] {
  width: 51px !important; height: 52px !important; padding: 0 !important;
  border: 0 !important; box-shadow: none !important;
  background: var(--home-metric-icon) center / contain no-repeat !important;
}
body.home-view-active[data-skin-atlas="halloween"] #nowView [data-home-material="metric"] > svg { opacity: 0; }
body.home-view-active[data-skin-atlas="halloween"] #nowView .now-actions > button+button [data-icon] {
  width: 34px; height: 31px; background: var(--home-secondaryIcon) center / contain no-repeat;
}
body.home-view-active[data-skin-atlas="halloween"] #nowView .now-actions > button+button [data-icon] svg { opacity: 0; }
body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-panel header h2 svg { color: #fca43f; }
/* Keep a one-line title inside the carved, fixed-height header. The real
   "Vedi tutte" button keeps its accessible text and action at narrow sizes. */
body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-news-panel > header h2 {
  display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@container (max-width: 340px) {
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-news-panel > header > button { font-size: 0; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-news-panel > header > button::after { content: "→"; font-size: 14px; }
}
@media (min-width: 1200px) and (max-height: 849px) {
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-home-copy { padding: 16px 25px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-home-copy h1 { font-size: 35px; margin-block: 8px 5px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-home-copy p { font-size: 13px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .now-actions { margin-top: 12px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .now-actions > button { height: 40px; font-size: 14px; }
  body[data-skin-atlas="halloween"] .app-sidebar .rail-item { min-height: 36px; height: 36px; }
  body[data-skin-atlas="halloween"] .rail-primary > .rail-item:first-child { min-height: 39px; height: 39px; }
  body[data-skin-atlas="halloween"] .app-sidebar .rail-item b { font-size: 14px; }
  body[data-skin-atlas="halloween"] .app-sidebar .home-sidebar-sponsor { flex: 1 1 auto; height: auto; max-height: 165px; min-height: 68px; aspect-ratio: auto; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-panel h2 { font-size: 14px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-news-row { min-height: 55px; gap: 8px; padding-block: 5px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-news-row strong { font-size: 12px; }
  body.home-view-active[data-skin-atlas="halloween"] #nowView .approved-news-row small { font-size: 11px; }
}
@media (min-width: 1200px) and (max-width: 1430px) {
  body[data-skin-atlas="halloween"] .titlebar { grid-template-columns: 260px minmax(290px, 1fr) auto; column-gap: 24px; padding-right: 18px; }
  body[data-skin-atlas="halloween"] .titlebar .brand-lockup { width: 260px; padding-inline: 15px !important; }
  body[data-skin-atlas="halloween"] .titlebar .brand-logo { width: 239px; }
  body[data-skin-atlas="halloween"] .titlebar { --home-bar-decor-x: 65%; }
}
@media (max-width: 1199px) {
  body.home-view-active[data-skin-atlas="halloween"] #nowView [data-home-material="metric"] { width: 36px !important; height: 37px !important; }
}
