:root {
  color-scheme: dark;
  --ink: #080b0f;
  --panel: #101419;
  --white: #f5f5f5;
  --muted: #a8adb5;
  --red: #f22435;
  --border: rgba(255,255,255,.16);
  --toolbar: clamp(72px, 7.7vh, 92px);
  --page-pad: clamp(30px, 4.6vw, 112px);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--ink);
  color: var(--white);
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; background: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
button:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.toolbar { position: absolute; inset: 0 0 auto; height: var(--toolbar); z-index: 20; display: flex; align-items: center; gap: 30px; padding: 0 clamp(24px, 2.7vw, 64px); background: #080b0f; border-bottom: 1px solid var(--border); transition: transform .2s, opacity .2s; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.toolbar-separator { width: 1px; height: 32px; background: var(--border); }
.toolbar-context { display: flex; flex-direction: column; gap: 5px; white-space: nowrap; }
.context-overline { font-size: 9px; letter-spacing: .24em; color: var(--muted); }
#contextTitle { font-size: 14px; font-weight: 500; }
.toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; }
.control { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 14px; min-height: 44px; background: transparent; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s; }
.control:hover, .icon-button:hover { background: rgba(255,255,255,.08); }
.control-outline { border-color: var(--border); }
.control-outline:hover { border-color: rgba(255,255,255,.4); }
.icon-button { display: inline-flex; width: 42px; height: 42px; justify-content: center; align-items: center; background: transparent; border: 1px solid transparent; border-radius: 4px; }
.welcome { position: absolute; top: var(--toolbar); inset-inline: 0; bottom: 0; min-height: 0; isolation: isolate; }
.hero-visual { position: absolute; inset: 0; z-index: -2; background: url('assets/welcome.webp') center 36% / cover no-repeat; }
.hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(8,11,15,.08) 0%,rgba(8,11,15,.02) 32%,rgba(8,11,15,.61) 62%,rgba(8,11,15,.95) 92%,#080b0f 100%); }
.image-caption { position: absolute; top: 32px; left: var(--page-pad); display: flex; gap: 12px; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: .21em; text-shadow: 0 1px 8px #000; }
.small-line { width: 26px; height: 2px; background: var(--red); }
.welcome-bottom { position: absolute; bottom: clamp(108px, 11vh, 150px); left: var(--page-pad); right: var(--page-pad); display: grid; grid-template-columns: minmax(0, 1fr) minmax(315px, .45fr); align-items: end; column-gap: 6vw; }
.eyebrow { font-size: clamp(10px, .7vw, 14px); font-weight: 700; letter-spacing: .22em; margin: 0 0 20px; color: var(--red); }
h1 { font-size: clamp(60px, 6.45vw, 146px); line-height: .96; letter-spacing: -.045em; font-weight: 750; margin: 0; }
.red-dot { color: var(--red); }
.welcome-description { font-size: clamp(14px, 1.08vw, 23px); color: #c1c5cb; line-height: 1.55; margin: 25px 0 0; }
.booklet-card { max-width: 600px; width: 100%; justify-self: end; padding: clamp(24px, 2.15vw, 48px); background: rgba(11,15,20,.95); border: 1px solid rgba(255,255,255,.2); border-top: 3px solid var(--red); border-radius: 2px; box-shadow: 0 15px 60px rgba(0,0,0,.16); }
.card-kicker { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .15em; font-weight: 700; color: #b8bdc4; }
.card-kicker .icon { width: 20px; height: 20px; }
.booklet-card h2 { display: flex; align-items: center; justify-content: space-between; font-size: clamp(35px, 2.7vw, 62px); letter-spacing: -.035em; font-weight: 600; margin: 18px 0 10px; }
.card-number { align-self: center; font-size: 13px; font-weight: 400; letter-spacing: 0; color: #707781; }
.booklet-card p { font-size: clamp(13px, .85vw, 18px); color: var(--muted); line-height: 1.5; margin: 0 0 25px; }
.primary-button { width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--red); background: var(--red); color: #fff; padding: 20px 22px; font-size: clamp(15px, .94vw, 21px); font-weight: 700; border-radius: 2px; transition: background .18s, border-color .18s, transform .18s; }
.primary-button:hover { background: #d91527; border-color: #d91527; transform: translateY(-1px); }
.primary-button .icon { width: 24px; height: 24px; }
.card-note { display: block; text-align: center; font-size: 11px; color: #838b96; padding-top: 15px; }
.welcome-footer { position: absolute; bottom: 0; left: var(--page-pad); right: var(--page-pad); height: 78px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.product-families { display: flex; align-items: center; gap: clamp(16px, 2vw, 42px); font-size: clamp(10px,.75vw,16px); letter-spacing: .12em; font-weight: 600; }
.product-families i { width: 1px; height: 13px; background: var(--red); }
.footer-tag { font-size: 10px; letter-spacing: .19em; color: #8f96a1; white-space: nowrap; }
body.reading { --toolbar: 66px; }
body.reading .toolbar { gap: 24px; }
.reader { position: absolute; top: var(--toolbar); inset-inline: 0; bottom: 0; background: #080b0f; transition: top .2s; }
#bookletFrame { width: 100%; height: 100%; display: block; border: 0; background: #080b0f; }
.reader-loading { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #080b0f; }
.loading-ring { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255,255,255,.14); border-top-color: var(--red); animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reader-loading h2 { margin: 28px 0 8px; font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.reader-loading p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.text-button { border: 0; background: transparent; padding: 7px 0; color: #d8dce3; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
body.focus-mode .toolbar { transform: translateY(-100%); opacity: 0; pointer-events: none; }
body.focus-mode .reader { top: 0; }
.restore-toolbar { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 14px; z-index: 25; display: flex; align-items: center; gap: 8px; border: 1px solid #454a53; background: rgba(8,11,15,.94); color: #fff; padding: 9px 13px; border-radius: 5px; font-size: 12px; box-shadow: 0 2px 10px #0003; }
.restore-toolbar:hover { background: #252a31; }
.reader-notice { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 9; display: flex; align-items: center; gap: 18px; padding: 16px 18px; max-width: min(800px, 94vw); background: #1c222a; border: 1px solid #555d69; border-radius: 4px; box-shadow: 0 8px 32px #0006; font-size: 13px; }
.reader-notice .text-button { flex-shrink: 0; }
.notice-close { display: grid; place-items: center; background: transparent; border: 0; padding: 0; }
.notice-close .icon { width: 18px; height: 18px; }
.toast { position: fixed; z-index: 90; bottom: 30px; left: 50%; transform: translateX(-50%); background: #1c222a; border: 1px solid #5e6875; color: #fff; padding: 16px 22px; border-radius: 4px; max-width: 90vw; font-size: 14px; line-height: 1.5; }
.modal { width: min(94vw, 540px); border: 1px solid #353c47; border-top: 3px solid var(--red); border-radius: 4px; padding: 44px; background: #11161d; color: #fff; max-height: calc(100dvh - 40px); overflow: auto; box-shadow: 0 20px 100px #000a; }
.modal::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(6px); }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal .eyebrow { font-size: 9px; margin-top: 6px; margin-bottom: 18px; }
.modal h2 { font-size: 38px; font-weight: 600; line-height: 1.05; letter-spacing: -.04em; margin: 0 0 15px; }
.modal-intro { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 24px; }
.share-modal { text-align: center; }
.qr-frame { margin: 0 auto 20px; background: #fff; padding: 2px; width: min(100%, 280px); border-radius: 3px; }
.qr-frame img { display: block; width: 100%; height: auto; }
.share-url { font-size: 16px; display: inline-flex; gap: 10px; align-items: center; margin-bottom: 25px; }
.share-url .icon { width: 15px; height: 15px; }
.copy-button { justify-content: center; font-size: 14px; padding: 15px 20px; }
.fine-print { color: #858e9b; font-size: 11px; line-height: 1.7; margin: 18px 0 0; }
#copyStatus { min-height: 16px; margin-top: 10px; }
.help-modal { width: min(94vw, 850px); }
.help-modal h2 { max-width: 620px; margin-bottom: 30px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.help-grid h3 { font-size: 14px; margin: 0 0 9px; }
.help-grid p { font-size: 13px; line-height: 1.65; color: #a7afbb; margin: 0; }
.help-grid strong { color: #dbe0e6; font-weight: 500; }
.help-actions { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); padding-top: 26px; margin-top: 30px; }
.compact { width: auto; justify-content: center; font-size: 13px; padding: 12px 18px; }
.no-script { position: fixed; bottom: 0; inset-inline: 0; background: #691c28; color: white; padding: 18px; z-index: 200; text-align: center; }
.no-script a { text-decoration: underline; }
@media (min-width: 2400px) {
  body.reading { --toolbar: 86px; }
  .control { font-size: 17px; padding: 14px 20px; }
  .toolbar-context #contextTitle { font-size: 18px; }
  .context-overline { font-size: 12px; }
  .icon { width: 26px; height: 26px; }
  .image-caption, .card-kicker { font-size: 15px; }
  .card-note { font-size: 15px; }
  .footer-tag { font-size: 14px; }
  .welcome-footer { height: 100px; }
}
@media (max-width: 1150px) {
  .toolbar-context, .toolbar-separator { display: none; }
  .toolbar-actions { gap: 3px; }
  .toolbar { gap: 15px; }
  .control { padding: 10px; font-size: 12px; }
  .welcome-bottom { grid-template-columns: minmax(0,1fr) 320px; gap: 24px; }
  h1 { font-size: 6.7vw; }
  .welcome-description { font-size: 14px; max-width: 350px; }
  .booklet-card { padding: 24px; }
  .footer-tag { display: none; }
}
@media (max-height: 720px) and (min-width: 801px) {
  :root { --toolbar: 66px; }
  .welcome-bottom { bottom: 85px; }
  h1 { font-size: clamp(52px, 7vw, 86px); }
  .eyebrow { margin-bottom: 12px; }
  .welcome-description { margin-top: 17px; }
  .booklet-card { padding: 20px 24px; }
  .booklet-card h2 { margin: 10px 0 8px; font-size: 34px; }
  .booklet-card p { margin-bottom: 17px; }
  .primary-button { padding: 15px 20px; font-size: 15px; }
  .card-note { padding-top: 10px; }
  .welcome-footer { height: 60px; }
}
@media (max-width: 800px) {
  :root { --toolbar: 68px; --page-pad: 24px; }
  .toolbar { padding: 0 20px; gap: 12px; }
  .brand { gap: 10px; }
  .control span { display: none; }
  .control { min-width: 39px; padding: 8px; min-height: 40px; }
  .toolbar-actions { gap: 1px; }
  .toolbar .icon { width: 19px; height: 19px; }
  .icon-button { width: 35px; }
  .welcome-bottom { grid-template-columns: minmax(0,1fr) 265px; gap: 20px; bottom: 100px; }
  h1 { font-size: 6.8vw; }
  .welcome-description { font-size: 12px; }
  .booklet-card { padding: 20px; }
  .booklet-card h2 { font-size: 32px; }
  .card-kicker { font-size: 8px; gap: 7px; }
  .card-kicker .icon { width: 17px; }
  .booklet-card p { font-size: 12px; }
  .product-families { gap: 14px; font-size: 9px; }
}
@media (max-width: 600px) {
  :root { --page-pad: 22px; }
  body { overflow: auto; }
  body.reading { overflow: hidden; --toolbar: 62px; }
  .welcome { min-height: 810px; position: relative; top: 0; margin-top: var(--toolbar); height: calc(100svh - var(--toolbar)); }
  .hero-visual { background-position: center top; background-size: auto 57%; }
  .hero-visual::after { background: linear-gradient(180deg,rgba(8,11,15,.12),rgba(8,11,15,.04) 22%,rgba(8,11,15,.84) 42%,#080b0f 58%); }
  .image-caption { top: 23px; font-size: 8px; }
  .welcome-bottom { grid-template-columns: 1fr; bottom: 115px; gap: 25px; }
  .welcome-copy { max-width: 100%; }
  .eyebrow { font-size: 9px; margin-bottom: 13px; }
  h1 { font-size: clamp(41px, 11.6vw, 65px); }
  .welcome-description { font-size: 12px; margin-top: 16px; }
  .booklet-card { max-width: none; padding: 21px 24px; }
  .booklet-card h2 { margin-top: 12px; }
  .booklet-card p { margin-bottom: 18px; }
  .primary-button { padding: 15px 18px; }
  .card-note { padding-top: 11px; font-size: 10px; }
  .welcome-footer { height: 87px; }
  .product-families { flex-wrap: wrap; gap: 12px 13px; font-size: 9px; line-height: 1.8; }
  .product-families i { height: 10px; }
  .toolbar { padding: 0 14px; }
  body.reading .brand { display: none; }
  body.reading .toolbar-actions { justify-content: space-between; margin: 0; width: 100%; }
  body.reading .control span { display: inline; font-size: 10px; }
  body.reading .control { gap: 5px; padding: 7px; }
  body.reading #shareButton span, body.reading #fullscreenButton span { display: none; }
  .modal { padding: 38px 25px 25px; }
  .modal h2 { font-size: 31px; }
  .modal .eyebrow { max-width: 250px; margin-inline: auto; line-height: 1.6; }
  .help-grid { grid-template-columns: 1fr; gap: 20px; }
  .help-actions { margin-top: 22px; padding-top: 22px; }
  .reader-notice { padding: 12px; font-size: 11px; gap: 10px; }
  .reader-notice .text-button { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* v1.0.1: original Intelligent Entertainment artwork, unmodified.
   The light badge provides contrast for the official transparent wordmark. */
.brand {
  padding: 8px 11px;
  gap: 0;
  background: #fff;
  border-radius: 3px;
  line-height: 0;
}
.brand-logo {
  display: block;
  width: clamp(170px, 12vw, 252px);
  height: auto;
  object-fit: contain;
  color: #111;
  font-size: 12px;
  line-height: 1.3;
}
body.reading .brand { padding: 6px 9px; }
body.reading .brand-logo { width: 184px; }
.share-brand {
  display: inline-flex;
  background: #fff;
  padding: 10px 14px;
  border-radius: 3px;
  margin: 0 auto 26px;
}
.share-brand img {
  display: block;
  width: min(230px, 58vw);
  height: auto;
  color: #111;
  font-size: 12px;
}
@media (min-width: 2400px) {
  body.reading .brand-logo { width: 252px; }
}
@media (max-height: 720px) and (min-width: 801px) {
  .brand { padding: 6px 9px; }
  .brand-logo { width: 184px; }
}
@media (max-width: 800px) {
  .brand { padding: 6px 8px; }
  .brand-logo, body.reading .brand-logo { width: 154px; }
}
