/* PIXEL TRADING FLOOR 데모 버전 — 리본 + 고정 안내 + 차트 크기 + 첫 방문 안내 (build.js가 hq.css 뒤에 붙인다) */

#dp-card-btn { display: none !important; }

/* 항상 보이는 안내 — 교육용 시뮬레이션 · 샘플 데이터. 접거나 숨기지 않고 모든 화면 모드(데스크톱·휴대폰·임베드·시연)에서 보인다 */
#sim-notice {
  display: block !important; flex: none; box-sizing: border-box; width: 100%;
  padding: 5px 12px; font-size: 13px; line-height: 1.45; text-align: center; letter-spacing: 0;
  color: #fff8e0; background: #3a2a0c; border-bottom: 2px solid #000;
}
html.m #sim-notice { font-size: 12px; padding: 4px 8px; }

#lite-ribbon { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 10px; letter-spacing: .5px; }
#lite-ribbon b { background: #e8c84a; color: #1a1408; padding: 2px 6px; border: 2px solid #000; box-shadow: 2px 2px 0 #000; }
#lite-ribbon .why { color: #9a9ab4; }
/* 휴대폰: 레일이 옆으로 밀리니 데모 버전 표시·자료실 링크가 워치리스트보다 먼저 보이게 */
html.m #lite-ribbon { order: -1; flex: none; }
#lite-ribbon a {
  font: inherit; font-size: 10px; letter-spacing: .5px; color: #cfcfe0; background: #16162a;
  border: 2px solid #000; box-shadow: 2px 2px 0 #000; padding: 3px 8px; text-decoration: none; cursor: pointer;
}
#lite-ribbon a:hover { background: #e8c84a; color: #1a1408; }
#lite-ribbon a.full { background: #1f8f5a; color: #fff; }
html.m #lite-ribbon .why { display: none; }
html.m #lite-ribbon a { padding: 2px 6px; flex: none; }
html.kiosk #lite-ribbon { display: none; }

/* 첫 분석 전에는 ANALYZE가 깜빡이며 부른다 */
html.lite-first #analyze-btn:not(:disabled) { animation: lite-call 1s steps(2) infinite; }
@keyframes lite-call { 50% { box-shadow: 3px 3px 0 #000, 0 0 0 3px #e8c84a; } }

/* 상단 차트 — 참고 구간·목표 참고가·기준 이탈가·기준가 표시가 들어가게 키운다 (범례는 차트 안에 그린다) */
#chart-legend { display: none; }
html:not(.m) #chart { height: clamp(104px, 15vh, 150px); }
/* 휴대폰: 시세 한 줄 아래에 차트를 화면 폭 그대로 */
html.m #board { flex-wrap: wrap; row-gap: 4px; }
html.m #board-info { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
html.m #board-price { font-size: 17px; }
html.m #chart-wrap { flex: 1 1 100%; }
html.m #chart { height: 92px !important; }

/* 첫 방문 안내 — 모드 고르기 → ▶ ANALYZE (브라우저마다 한 번) */
#lite-tour {
  position: fixed; z-index: 99990; width: min(340px, calc(100vw - 16px)); padding: 12px 14px 10px;
  background: #12121f; color: #f2f2f8; border: 3px solid #000; box-shadow: 5px 5px 0 #000, inset 0 0 0 2px #e8c84a;
  font-size: 12px; line-height: 1.7; animation: ll-in .25s steps(4);
}
#lite-tour.hidden { display: none; }
#lite-tour .lt-step { display: inline-block; margin-bottom: 8px; font-size: 12px; letter-spacing: 1.5px; color: #1a1408; background: #e8c84a; padding: 2px 7px; border: 2px solid #000; box-shadow: 2px 2px 0 #000; }
#lite-tour p { margin: 0 0 6px; color: #cfcfe0; }
#lite-tour p b { color: #fff8e0; font-weight: normal; }
#lite-tour p em { font-style: normal; color: #e8c84a; }
#lite-tour .lt-big { font-size: 14px; color: #fff8e0; animation: lite-tour-blink 1s steps(2) infinite; }
#lite-tour .lt-big b { color: #e8c84a; }
#lite-tour .lt-note { font-size: 12px; color: #9a9ab4; }
#lite-tour .lt-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
#lite-tour button { font: inherit; font-size: 12px; cursor: pointer; padding: 4px 10px; color: #cfcfe0; background: #16162a; border: 2px solid #000; box-shadow: 2px 2px 0 #000; }
#lite-tour button.lt-next { color: #1a1408; background: #e8c84a; }
#lite-tour button:active { transform: translate(2px, 2px); box-shadow: none; }
#lite-tour .lt-arrow { position: absolute; width: 12px; height: 12px; background: #12121f; border: 3px solid #000; transform: rotate(45deg); }
#lite-tour[data-at="below"] .lt-arrow { top: -9px; border-right: 0; border-bottom: 0; }
#lite-tour[data-at="above"] .lt-arrow { bottom: -9px; border-left: 0; border-top: 0; }
.lite-tour-on { outline: 3px solid #e8c84a !important; outline-offset: 3px; }
#mode-toggle.lite-tour-on { animation: lite-tour-blink 1s steps(2) infinite; }
@keyframes lite-tour-blink { 50% { outline-color: transparent; opacity: .72; } }
@keyframes ll-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #lite-tour, #lite-tour .lt-big, #mode-toggle.lite-tour-on, html.lite-first #analyze-btn:not(:disabled) { animation: none; }
}

/* ?shell=1 — 모바일 앱 안 사무실 탭. 앱의 맨 위 띠가 이름을 대신 보여 주므로 로고 줄을 숨기고,
   한 화면에 눌러 담는 대신 위에서 아래로 쌓아 스크롤한다.
   사무실 칸(#floor)은 방 위치가 %라서 높이를 정해 둔다 */
html.shell #logo { display: none; }
html.m.shell #whip-chip { margin-left: auto; }
html.m.shell, html.m.shell body { height: auto; overflow-x: hidden; overflow-y: auto; }
html.m.shell #app { height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; }
html.m.shell #stage { flex: 1 0 auto; overflow: visible; }
html.m.shell #floor { flex: 1 0 auto; height: clamp(260px, 78vw, 380px); min-height: 0; }
