/* Home Essentials 360 preview (room picker + tier studio + configurator teaser).
   Temporary until the HE360 digital configurator ships on the page.
   Shared between grandbeetle.ro and somma.ro: keep this file identical in both repos.
   Everything is namespaced `he360p-`; colors come from the theme tokens below.
   Default theme = Grand Beetle (light). Add `he360p--somma` for the Somma dark theme. */

.he360p {
  --he360p-text: #2c373f;
  --he360p-heading: #2c373f;
  --he360p-muted: #5d6a72;
  --he360p-accent: #32ac62;
  --he360p-accent-text: #298a53;
  --he360p-grad: linear-gradient(45deg, #298a53, #32ac62);
  --he360p-on-accent: #ffffff;
  --he360p-glow: #5ee7a566;
  --he360p-glow-strong: #5ee7a580;
  --he360p-radius-card: 3em;
  --he360p-card-bg: #ffffff33 radial-gradient(circle farthest-corner at 50% 25%, #ffffffcc, transparent);
  --he360p-card-shadow: inset 0 0 1em 4px #ffffff33, 0 .2em 2em -2px #9ed0b71a, 0 1.5em 3em -2em #8ac5a84d;
  --he360p-glass-bg: #ffffff66 radial-gradient(circle farthest-side at 100% 100%, #ffffffcc, transparent);
  --he360p-glass-shadow: inset 0 0 1em 4px #ffffff66, 0 .2em 2em 0 #9ed0b71a;
  --he360p-frame-bg: #ffffff99;
  --he360p-frame-shadow: inset 0 0 1em 4px #ffffff66, 0 .5em 3em -1em #8ac5a866;
  --he360p-chip-bg: #ffffffcc;
  --he360p-chip-text: #2c373f;
  --he360p-chip-shadow: inset 0 0 .8em 2px #ffffff99, 0 .3em 1.2em #10162414;
  --he360p-btn-bg: #ffffff33 radial-gradient(circle farthest-corner at 25% 25%, #ffffffcc, transparent);
  --he360p-btn-border: #ffffff;
  --he360p-btn-text: #298a53;
  --he360p-btn-shadow: inset 0 2px 1em 2px #ffffff99, 0 .5em 4em -2px #8ac5a840;
  --he360p-btn-shadow-hover: inset 0 2px 1em 2px #ffffff99, 0 .8em 3em -1em #5ee7a580;
  --he360p-btn-primary-bg: #1e7b5c radial-gradient(circle farthest-corner at 0% 0%, #32ac62, #32ac6200);
  --he360p-btn-primary-text: #f7f9fa;
  --he360p-btn-primary-shadow: inset 0 0 1em #5ee7a580, 0 .5em 3em #5ee7a566;
  --he360p-stage-bg: #eef3f1;
  --he360p-track: #dbe6e1;
  --he360p-lb-bg: #f7f9faf2;
  --he360p-handle: #ffffff;
  --he360p-plan-bg: #fbfdfc;
  --he360p-plan-dot: #e6eeeb;
  --he360p-plan-room: #ffffff;
  --he360p-plan-wall: #2c373f;
  --he360p-plan-label: #5d6a72;
  --he360p-plan-furn: #dff2e7;
  --he360p-plan-furn-line: #32ac62;
  --he360p-ease: cubic-bezier(.65, 0, .25, 1);
  color: var(--he360p-text);
}

/* Somma: dark navy ground, blue accent, dark glass with hairline highlights */
.he360p.he360p--somma {
  --he360p-text: #eeebf5bf;
  --he360p-heading: #ffffff;
  --he360p-muted: #eeebf599;
  --he360p-accent: #4a94fc;
  --he360p-accent-text: #92ceff;
  --he360p-grad: radial-gradient(circle farthest-corner at 100% 100%, #3c51b6, #4a94fc);
  --he360p-on-accent: #ffffff;
  --he360p-glow: #8b6eff40;
  --he360p-glow-strong: #4a94fc66;
  --he360p-radius-card: 4em;
  --he360p-card-bg: radial-gradient(circle farthest-side at 0 0, #dbd6ee0a, #dbd6ee03);
  --he360p-card-shadow: inset 1px 1px 2px #ffffff1c, inset -1px -1px 1px #ffffff0f;
  --he360p-glass-bg: radial-gradient(circle farthest-side at 0 0, #dbd6ee12, #dbd6ee05);
  --he360p-glass-shadow: inset 1px 1px 2px #ffffff1c, inset -1px -1px 1px #ffffff0f;
  --he360p-frame-bg: #ffffff0d;
  --he360p-frame-shadow: inset 1px 1px 2px #ffffff26, inset -1px -1px 1px #ffffff12, 0 1em 2.5em -.5em #00000040;
  --he360p-chip-bg: #1a1a23b3;
  --he360p-chip-text: #ffffff;
  --he360p-chip-shadow: inset 1px 1px 2px #ffffff26, inset -1px -1px 1px #ffffff12;
  --he360p-btn-bg: radial-gradient(circle farthest-corner at 100% 100%, #ffffff14, #fff0);
  --he360p-btn-border: transparent;
  --he360p-btn-text: #ffffffe6;
  --he360p-btn-shadow: inset 1px 1px 8px #fff3, inset 1px 1px 2px #ffffffb3, inset -1px -1px 1px #fff3, inset -1px -1px 1px #a1a1a133, 0 1em 2.5em -.5em #00000029;
  --he360p-btn-shadow-hover: inset 1px 1px 4px #fff, inset 1px 1px 2px #ffffffb3, inset -1px -1px 1px #fffc, inset -1px -1px 1px #a1a1a133, 0 1em 2.5em -.5em #00000029;
  --he360p-btn-primary-bg: #2a2a8f radial-gradient(circle farthest-corner at 100% 100%, #3c51b6, #323a9f00);
  --he360p-btn-primary-text: #ffffff;
  --he360p-btn-primary-shadow: inset 1px 1px 8px #fff3, inset 1px 1px 2px #ffffff80, 0 1em 2.5em -.5em #00000040;
  --he360p-stage-bg: #22222d;
  --he360p-track: #ffffff1f;
  --he360p-lb-bg: #1a1a23f2;
  --he360p-handle: #ffffff;
  --he360p-plan-bg: #1f1f29;
  --he360p-plan-dot: #ffffff14;
  --he360p-plan-room: #262632;
  --he360p-plan-wall: #eeebf5cc;
  --he360p-plan-label: #eeebf58c;
  --he360p-plan-furn: #4a94fc29;
  --he360p-plan-furn-line: #92ceff;
}

.he360p[hidden], .he360p [hidden] { display: none !important; }
.he360p button { font: inherit; color: inherit; }
.he360p :focus-visible { outline: 2px solid var(--he360p-accent); outline-offset: 3px; border-radius: 8px; }

/* Page layout convention: same horizontal inset as contact/footer */
.he360p__inner { width: 100%; padding-left: 4em; padding-right: 4em; }
@media (max-width: 960px) { .he360p__inner { padding-left: 0; padding-right: 0; } }

/* surfaces */
.he360p-glass { background: var(--he360p-glass-bg); box-shadow: var(--he360p-glass-shadow); border-radius: 2em; }
.he360p-card { background: var(--he360p-card-bg); box-shadow: var(--he360p-card-shadow); border-radius: var(--he360p-radius-card); }
.he360p-frame { background: var(--he360p-frame-bg); box-shadow: var(--he360p-frame-shadow); border-radius: 2em; padding: .55em; }

/* buttons */
.he360p-btn { display: inline-flex; align-items: center; gap: .8em; min-height: 4.2em; padding: .4em .5em .4em 1.6em; border: 2px solid var(--he360p-btn-border); border-radius: 50em; background: var(--he360p-btn-bg); box-shadow: var(--he360p-btn-shadow); color: var(--he360p-btn-text); font-weight: 700; font-size: 1.1em; text-decoration: none; cursor: pointer; transition: transform .4s var(--he360p-ease), box-shadow .4s; }
.he360p-btn:hover { transform: translateY(-2px); box-shadow: var(--he360p-btn-shadow-hover); }
.he360p-btn__circ { width: 3.2em; height: 3.2em; border-radius: 50em; display: grid; place-items: center; background: var(--he360p-grad); box-shadow: 0 .2em 1.5em 0 var(--he360p-glow-strong); color: var(--he360p-on-accent); transition: transform .4s var(--he360p-ease); }
.he360p-btn:hover .he360p-btn__circ { transform: rotate(45deg); }
.he360p-btn__circ svg { width: 1.5em; height: 1.5em; }
.he360p-btn.is-primary { border: 0; background: var(--he360p-btn-primary-bg); color: var(--he360p-btn-primary-text); box-shadow: var(--he360p-btn-primary-shadow); }
.he360p-btn.is-primary .he360p-btn__circ { background: #ffffff33; box-shadow: inset 0 0 .6em #ffffff66; color: #fff; }

/* chips on images */
.he360p-tag { display: inline-flex; align-items: center; gap: .5em; padding: .45em 1em; border-radius: 50em; background: var(--he360p-chip-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--he360p-chip-shadow); color: var(--he360p-chip-text); font-weight: 700; font-size: .95em; line-height: 1.2; }
.he360p-tag i { width: .55em; height: .55em; border-radius: 50%; background: var(--he360p-accent); }

.he360p-kicker { color: var(--he360p-accent-text); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .95em; }

/* room picker */
.he360p-rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4em; margin-bottom: 3em; }
.he360p-room { border: 0; padding: .55em; cursor: pointer; text-align: left; border-radius: 2em; background: var(--he360p-frame-bg); box-shadow: var(--he360p-frame-shadow); transition: transform .5s var(--he360p-ease), box-shadow .5s; }
.he360p-room__ph { position: relative; aspect-ratio: 4 / 5; border-radius: 1.5em; overflow: hidden; }
.he360p-room__ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--he360p-ease); }
.he360p-room__count { position: absolute; top: .9em; left: .9em; }
.he360p-room__meta { display: flex; justify-content: space-between; align-items: center; gap: .6em; padding: 1em .8em .5em 1em; }
.he360p-room__meta h3 { margin: 0; font-size: 1.45em; line-height: 1.3; color: var(--he360p-heading); }
.he360p-room__meta span { color: var(--he360p-muted); font-size: 1em; }
.he360p-room__arrow { width: 2.8em; height: 2.8em; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--he360p-chip-bg); color: var(--he360p-accent-text); box-shadow: var(--he360p-chip-shadow); transition: transform .4s var(--he360p-ease); }
.he360p-room__arrow svg { width: 1.3em; height: 1.3em; }
.he360p-room:hover { transform: translateY(-4px); }
.he360p-room:hover img { transform: scale(1.06); }
.he360p-room:hover .he360p-room__arrow, .he360p-room[aria-pressed="true"] .he360p-room__arrow { background: var(--he360p-grad); color: var(--he360p-on-accent); transform: rotate(45deg); }
.he360p-room[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--he360p-accent), var(--he360p-frame-shadow), 0 .8em 3em -1em var(--he360p-glow-strong); }
@media (max-width: 960px) { .he360p-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1em; } .he360p-room__ph { aspect-ratio: 4 / 3; } }

/* studio */
.he360p-studio { padding: 1.4em; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2em; scroll-margin-top: clamp(5rem, 12vw, 7rem); }
@media (max-width: 1000px) { .he360p-studio { grid-template-columns: minmax(0, 1fr); padding: 1em; border-radius: 2em; } }
.he360p-studio__main { min-width: 0; }
.he360p-studio__title { display: flex; align-items: baseline; gap: .6em; flex-wrap: wrap; margin: 0 0 1em .3em; }
.he360p-studio__title h3 { margin: 0; font-size: 1.9em; line-height: 1.2; color: var(--he360p-heading); }
.he360p-controls { min-width: 0; display: flex; gap: .8em; align-items: center; flex-wrap: wrap; margin-bottom: 1em; }
.he360p-seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: .35em; border-radius: 50em; background: var(--he360p-frame-bg); box-shadow: var(--he360p-frame-shadow); }
.he360p-seg button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: .8em 1.4em; border-radius: 50em; font-weight: 700; font-size: 1.05em; color: var(--he360p-muted); transition: color .4s; white-space: nowrap; }
.he360p-seg button[aria-pressed="true"] { color: var(--he360p-on-accent); }
.he360p-seg__pill { position: absolute; z-index: 0; top: .35em; bottom: .35em; left: 0; border-radius: 50em; background: var(--he360p-grad); box-shadow: 0 .3em 1.4em var(--he360p-glow); transition: transform .6s var(--he360p-ease), width .6s var(--he360p-ease); }
.he360p-seg.is-small button { padding: .6em 1em; font-size: .95em; }
.he360p-spacer { flex: 1; }
.he360p-compare-btn { display: inline-flex; align-items: center; gap: .55em; border: 2px solid var(--he360p-btn-border); cursor: pointer; padding: .75em 1.3em; border-radius: 50em; font-weight: 700; font-size: 1.05em; color: var(--he360p-btn-text); background: var(--he360p-btn-bg); box-shadow: var(--he360p-btn-shadow); transition: color .4s; }
.he360p-compare-btn svg { width: 1.2em; height: 1.2em; }
.he360p-compare-btn[aria-pressed="true"] { background: var(--he360p-grad); color: var(--he360p-on-accent); border-color: transparent; }

.he360p-stage { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 1.5em; overflow: hidden; background: var(--he360p-stage-bg); isolation: isolate; }
.he360p-layer { position: absolute; inset: 0; cursor: zoom-in; }
.he360p-layer img { width: 100%; height: 100%; object-fit: cover; display: block; animation: he360p-drift 18s ease-in-out infinite alternate; }
.he360p-layer.is-enter { clip-path: inset(0 0 0 100%); animation: he360p-wipe 1.05s var(--he360p-ease) forwards; }
.he360p-layer.is-enter.is-rev { clip-path: inset(0 100% 0 0); }
.he360p-layer.is-enter img { animation: he360p-settle 1.05s var(--he360p-ease) both, he360p-drift 18s ease-in-out 1.05s infinite alternate; }
@keyframes he360p-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes he360p-settle { from { transform: scale(1.08); } to { transform: scale(1.01); } }
@keyframes he360p-drift { from { transform: scale(1.01); } to { transform: scale(1.06) translate(-1%, -.5%); } }
.he360p-stage__tags { position: absolute; left: 1em; top: 1em; z-index: 6; display: flex; gap: .5em; flex-wrap: wrap; }
.he360p-stage__nav { position: absolute; right: 1em; bottom: 1em; z-index: 6; display: flex; gap: .5em; align-items: center; }
.he360p-round { width: 3em; height: 3em; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--he360p-chip-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--he360p-accent-text); box-shadow: var(--he360p-chip-shadow); transition: transform .3s var(--he360p-ease), color .3s; }
.he360p-round:hover { background: var(--he360p-grad); color: var(--he360p-on-accent); transform: scale(1.06); }
.he360p-round:disabled { opacity: .45; pointer-events: none; }
.he360p-round svg { width: 1.25em; height: 1.25em; }
.he360p-counter { font-variant-numeric: tabular-nums; }

/* compare */
.he360p-compare { position: absolute; inset: 0; z-index: 8; background: var(--he360p-stage-bg); touch-action: none; }
.he360p-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.he360p-compare .is-right { clip-path: inset(0 0 0 var(--he360p-pos, 50%)); }
.he360p-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--he360p-pos, 50%); width: 0; z-index: 3; }
.he360p-compare__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--he360p-handle); box-shadow: 0 0 .8em #10162426; }
.he360p-compare__knob { position: absolute; top: 50%; left: 0; width: 3.4em; height: 3.4em; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; cursor: ew-resize; background: var(--he360p-grad); color: var(--he360p-on-accent); box-shadow: 0 0 0 5px #ffffffcc, 0 .4em 1.6em #10162433; }
.he360p-compare__knob svg { width: 1.5em; height: 1.5em; }
.he360p-compare__l, .he360p-compare__r { position: absolute; top: 1em; z-index: 4; }
.he360p-compare__l { left: 1em; } .he360p-compare__r { right: 1em; }
.he360p-compare input[type="range"] { position: absolute; left: 1em; right: 1em; bottom: 4.5em; width: calc(100% - 2em); opacity: 0; height: 2em; cursor: ew-resize; }
.he360p-compare__bar { position: absolute; left: 50%; bottom: 1em; transform: translateX(-50%); z-index: 4; max-width: calc(100% - 2em); }

/* model thumbnails */
.he360p-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .8em; margin-top: 1.1em; }
.he360p-thumb { position: relative; border: 0; cursor: pointer; padding: .3em; border-radius: 1.1em; background: var(--he360p-frame-bg); box-shadow: var(--he360p-frame-shadow); transition: transform .4s var(--he360p-ease), box-shadow .4s; }
.he360p-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: .85em; filter: saturate(.8); opacity: .75; transition: opacity .4s, filter .4s; }
.he360p-thumb:hover { transform: translateY(-2px); }
.he360p-thumb:hover img, .he360p-thumb[aria-current="true"] img { opacity: 1; filter: none; }
.he360p-thumb[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--he360p-accent), 0 .4em 1.6em -.4em var(--he360p-glow-strong); }
.he360p-thumb .he360p-tag { position: absolute; right: .7em; bottom: .7em; gap: .35em; padding: .2em .6em; font-size: .78em; }
.he360p-thumb .he360p-tag svg { width: 1.1em; height: 1.1em; }

/* side panel */
.he360p-panel { display: flex; flex-direction: column; gap: 1.5em; padding: 1em .6em .6em 0; min-width: 0; }
@media (max-width: 1000px) { .he360p-panel { padding: .4em; } }
.he360p-panel h4 { margin: .25em 0 0; font-size: 2.6em; line-height: 1.1; font-weight: 700; color: var(--he360p-heading); }
.he360p-level { display: flex; gap: .35em; margin-top: .8em; }
.he360p-level i { width: 2.4em; height: .45em; border-radius: 50em; background: var(--he360p-track); transition: background .6s, box-shadow .6s; }
.he360p-level i.is-on { background: var(--he360p-accent); box-shadow: 0 .1em .8em var(--he360p-glow); }
.he360p-panel__desc { color: var(--he360p-muted); font-size: 1.15em; line-height: 1.6; margin: 1em 0 0; }
.he360p-model { padding: 1.2em 1.3em; }
.he360p-model b { display: block; font-size: 1.2em; color: var(--he360p-heading); }
.he360p-model p { color: var(--he360p-muted); margin: .3em 0 0; line-height: 1.55; font-size: 1.05em; }
.he360p-block-title { font-weight: 700; font-size: .85em; letter-spacing: .2em; text-transform: uppercase; color: var(--he360p-accent-text); margin-bottom: .8em; }
.he360p-swatches { display: flex; flex-wrap: wrap; gap: .5em; }
.he360p-sw { display: flex; align-items: center; gap: .55em; padding: .3em .9em .3em .3em; border-radius: 50em; background: var(--he360p-frame-bg); box-shadow: var(--he360p-frame-shadow); color: var(--he360p-heading); font-size: .95em; font-weight: 600; line-height: 1.2; animation: he360p-rise .6s var(--he360p-ease) backwards; }
.he360p-sw i { width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px #00000014; }
.he360p-sw i.is-wood { background: repeating-linear-gradient(100deg, var(--c) 0 5px, color-mix(in srgb, var(--c) 84%, #000) 5px 6px, var(--c) 6px 11px); }
.he360p-sw small { display: block; font-weight: 500; color: var(--he360p-muted); font-size: .85em; }
@keyframes he360p-rise { from { transform: translateY(.6em); } }
.he360p-fineprint { font-size: .9em; color: var(--he360p-muted); margin: .7em 0 0; }
.he360p-checks { display: flex; flex-direction: column; gap: .7em; }
.he360p-checks div { display: flex; gap: .6em; align-items: flex-start; font-size: 1.1em; font-weight: 500; }
.he360p-checks svg { width: 1.4em; height: 1.4em; flex: none; color: var(--he360p-accent); }
.he360p-panel .he360p-btn { align-self: flex-start; }

/* configurator teaser */
.he360p-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3em; align-items: center; padding: 3em; }
@media (max-width: 960px) { .he360p-teaser { grid-template-columns: minmax(0, 1fr); padding: 1.6em; gap: 2em; } }
.he360p-soon { display: inline-flex; align-items: center; gap: .6em; }
.he360p-pulse { width: .6em; height: .6em; border-radius: 50%; background: var(--he360p-accent); animation: he360p-pulse 2.2s infinite; }
@keyframes he360p-pulse { 0% { box-shadow: 0 0 0 0 var(--he360p-glow-strong); } 70% { box-shadow: 0 0 0 .8em transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.he360p-teaser h2 { margin: .5em 0 0; font-size: 2.6em; line-height: 1.25; color: var(--he360p-heading); }
.he360p-teaser p { color: var(--he360p-muted); font-size: 1.15em; line-height: 1.6; margin: 1em 0 0; max-width: 34em; }
.he360p-steps { display: grid; gap: .8em; margin: 1.6em 0 2em; }
.he360p-steps div { display: flex; gap: 1em; align-items: center; font-weight: 500; font-size: 1.1em; }
.he360p-steps b { width: 2.4em; height: 2.4em; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .85em; color: var(--he360p-accent-text); background: var(--he360p-chip-bg); box-shadow: var(--he360p-chip-shadow); }
.he360p-mock__screen { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 1.5em; overflow: hidden; background: var(--he360p-plan-bg); }
.he360p-mock canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.he360p-mock .he360p-tag { position: absolute; right: 1em; bottom: 1em; }
@media (max-width: 479px) { .he360p-teaser h2 { font-size: 2em; } .he360p-panel h4 { font-size: 2.1em; } }

/* lightbox */
.he360p-lb { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--he360p-lb-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: calc(env(safe-area-inset-top, 0px) + 4.5em) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 5em) max(16px, env(safe-area-inset-left, 0px)); }
.he360p-lb .he360p-frame { max-width: 100%; max-height: 100%; display: flex; }
.he360p-lb img { max-width: 100%; max-height: calc(100vh - 11em); object-fit: contain; border-radius: 1.5em; display: block; animation: he360p-lbin .5s var(--he360p-ease); }
@keyframes he360p-lbin { from { transform: scale(.97); opacity: .4; } }
.he360p-lb__close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 1em); right: max(16px, env(safe-area-inset-right, 0px)); }
.he360p-lb__prev, .he360p-lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.he360p-lb__prev:hover, .he360p-lb__next:hover { transform: translateY(-50%) scale(1.06); }
.he360p-lb__prev { left: max(16px, env(safe-area-inset-left, 0px)); } .he360p-lb__next { right: max(16px, env(safe-area-inset-right, 0px)); }
.he360p-lb__cap { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 1.2em); left: 50%; transform: translateX(-50%); white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }

@media (prefers-reduced-motion: reduce) {
  .he360p *, .he360p *::before, .he360p *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* phone: bigger main render, compact scrollable thumbnail row */
@media (max-width: 767px) {
  .he360p-studio { padding: .6em; gap: 1.4em; }
  .he360p-studio__main > .he360p-frame { padding: .35em; border-radius: 1.6em; }
  .he360p-stage { aspect-ratio: 4 / 3; border-radius: 1.3em; }
  .he360p-stage__tags { left: .7em; top: .7em; }
  .he360p-stage__nav { right: .7em; bottom: .7em; gap: .35em; }
  .he360p-round { width: 2.6em; height: 2.6em; }
  .he360p-strip { display: flex; gap: .5em; overflow-x: auto; scroll-snap-type: x proximity; padding: .2em .1em .5em; margin-top: .7em; scrollbar-width: none; }
  .he360p-strip::-webkit-scrollbar { display: none; }
  .he360p-thumb { flex: 0 0 5.8em; padding: .2em; border-radius: .9em; scroll-snap-align: start; }
  .he360p-thumb img { border-radius: .7em; }
  .he360p-thumb .he360p-tag { right: .35em; bottom: .35em; gap: .25em; padding: .1em .45em; font-size: .7em; }
}
