/* iClaimsGuard guided demo player. Brand: navy #293643, orange #F6921E, slate #3F5866, pale blue #90C0D5; Montserrat. */
:root { --navy: #293643; --orange: #F6921E; --slate: #3F5866; --pale: #90C0D5; --ink: #1d2731; --paper: #f4f7f9; --line: rgba(255,255,255,.14); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { font-family: Montserrat, "Segoe UI", Arial, sans-serif; background: var(--navy); color: #fff; }
button { font: inherit; cursor: pointer; }
.hidden { display: none !important; }
.sm { font-size: .5em; font-weight: 600; vertical-align: super; line-height: 0; margin-left: .05em; letter-spacing: .02em; }

.app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; width: 100%; }
.top { display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: var(--navy); border-bottom: 3px solid var(--orange); flex: 0 0 auto; min-width: 0; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; white-space: nowrap; }
.top-title { color: var(--pale); font-weight: 600; font-size: 14px; white-space: nowrap; }
.draft { background: var(--orange); color: var(--navy); font-weight: 800; font-size: 11px; letter-spacing: .06em; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top-sample { margin-left: auto; font-size: 12px; color: var(--pale); white-space: nowrap; }

/* the screenshot takes the whole stage; the caption sits over its lower edge */
.stage { position: relative; flex: 1 1 auto; min-height: 0; background: #11181f; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shot { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.caption { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(980px, calc(100% - 32px)); background: rgba(41,54,67,.94); border-left: 5px solid var(--orange); border-radius: 8px; padding: 10px 16px 12px; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.cap-title { margin: 0 0 3px; color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.cap-text { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 500; }
.cap-warn { margin: 6px 0 0; font-size: 13px; color: #ffd9a8; }

.bar { flex: 0 0 auto; background: var(--navy); border-top: 1px solid var(--line); padding: 8px 16px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.where { font-size: 14px; font-weight: 600; flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
.where b { color: var(--orange); }
.ctrls { display: flex; flex-wrap: wrap; gap: 6px; }
.ctrls button, .ch-head button, .start-btns button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; padding: 7px 12px; font-weight: 600; font-size: 13px; }
.ctrls button:hover, .ch-head button:hover, .start-btns button:hover { border-color: var(--orange); }
.ctrls button:disabled { opacity: .35; cursor: default; }
button.primary { background: var(--orange); border-color: var(--orange); color: var(--navy); }
button:focus-visible { outline: 3px solid var(--pale); outline-offset: 2px; }
.keys { flex: 1 1 100%; font-size: 11px; color: var(--pale); }

/* chapter list: only on the C key (or the Chapters button) */
.chapters { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100%); background: #fff; color: var(--ink); z-index: 20; box-shadow: -10px 0 30px rgba(0,0,0,.35); display: flex; flex-direction: column; }
.ch-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--navy); color: #fff; border-bottom: 3px solid var(--orange); }
.ch-head h2 { margin: 0; font-size: 16px; }
.chapters ol { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; counter-reset: ch; }
.chapters li button { display: block; width: 100%; text-align: left; background: none; border: 0; border-left: 4px solid transparent; padding: 10px 16px; color: var(--ink); }
.chapters li button:hover { background: var(--paper); }
.chapters li button.current { border-left-color: var(--orange); background: #fff5ea; }
.chapters .n { color: var(--orange); font-weight: 800; margin-right: 6px; }
.chapters .t { font-weight: 700; }
.chapters .i { display: block; font-size: 12px; color: var(--slate); margin-top: 2px; }

.start { position: fixed; inset: 0; z-index: 30; background: rgba(41,54,67,.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.start-card { background: #fff; color: var(--ink); border-top: 6px solid var(--orange); border-radius: 10px; max-width: 560px; width: 100%; padding: 26px 26px 22px; }
.start-kicker { margin: 0 0 6px; color: var(--orange); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.start-card h1 { margin: 0 0 10px; color: var(--navy); font-size: 26px; line-height: 1.2; }
.start-lede { margin: 0 0 18px; color: var(--slate); line-height: 1.5; }
.start-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.start-btns button { color: var(--navy); border-color: var(--navy); }
.start-btns button.primary { color: var(--navy); }
.start-note { margin: 14px 0 0; font-size: 12px; color: var(--slate); }

@media (max-width: 700px) {
  .top { gap: 8px; padding: 6px 12px; }
  .top-title, .top-sample { display: none; }
  .brand { font-size: 16px; }
  .caption { position: static; transform: none; width: 100%; border-radius: 0; bottom: auto; }
  .stage { flex-direction: column; justify-content: flex-start; }
  .shot { max-height: none; width: 100%; flex: 1 1 auto; min-height: 0; }
  .cap-text { font-size: 14px; }
  .bar { padding: 6px 12px 8px; }
  .where { font-size: 12px; flex-basis: 100%; }
  .ctrls { width: 100%; }
  .ctrls button { flex: 1 1 auto; padding: 7px 6px; font-size: 12px; }
  .keys { display: none; }
  .start-card h1 { font-size: 21px; }
}
