/* Styles originally produced inline by the upstream carousel. */
.fade-carousel-slide { opacity: 0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: opacity .8s ease-in-out; z-index: 0; pointer-events: none; }
.fade-carousel-slide:first-child { opacity: 1; z-index: 1; pointer-events: auto; }
.fade-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.fade-carousel-pagination { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.fade-carousel-dot { width: 12px; height: 12px; border-radius: 50%; border: none; background-color: rgba(255,255,255,.5); cursor: pointer; transition: background-color .3s; }
.fade-carousel-dot:first-child { background-color: #fff; }
.fade-carousel-prev, .fade-carousel-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 40px; color: #fff; background-color: rgba(0,0,0,.1); border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; z-index: 10; transition: background-color .3s; }
.fade-carousel-prev { left: 10px; }
.fade-carousel-next { right: 10px; }
.fade-carousel-prev:hover, .fade-carousel-next:hover { background-color: rgba(0,0,0,.6); }
.officialapp-site-logo { display: inline-block; width: auto; max-width: 160px; max-height: 40px; object-fit: contain; vertical-align: middle; margin-right: 12px; }
[hidden] { display: none !important; }
[role="link"]:focus-visible, .scroll-button:focus-visible, .fade-carousel-dot:focus-visible, .fade-carousel-prev:focus-visible, .fade-carousel-next:focus-visible { outline: 3px solid #a86c24; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .scroll-button { animation: none; }
  .fade-carousel-slide, .fade-carousel-dot, .card-style1, .card-style1-button { transition: none; }
}

/* The supplied 2028 mark is transparent; keep the original card layout. */
.card-style1-logo { background: transparent; border-color: transparent; box-shadow: none; padding: 2px; }
.card-style1-logo img { width: 180px; max-width: 100% !important; height: auto; max-height: 100%; object-fit: contain; }
.card-style1-info { min-width: 0; }
.home { padding-top: max(48px, calc(var(--officialapp-header-height, 64px) - 16px)); padding-bottom: var(--contact-reserve, 0px); }

/* Compact, non-modal contact card in the existing warm LP-008 palette. */
.contact-widget {
  --contact-ink: #675441;
  --contact-accent: #973b00;
  --contact-edge: #e5d8ca;
  position: fixed;
  z-index: 90;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 292px;
  max-width: calc(100vw - 32px);
  color: var(--contact-ink);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  text-align: left;
  pointer-events: none;
}
.contact-widget button, .contact-widget a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; font: inherit; }
.contact-widget button { cursor: pointer; }
.contact-widget button:focus-visible, .contact-widget a:focus-visible, .contact-id:focus-visible { outline: 3px solid #973b00; outline-offset: 3px; }
.contact-panel {
  padding: 18px;
  border: 1px solid var(--contact-edge);
  border-radius: 18px;
  background: #fffaf4;
  box-shadow: 0 6px 30px rgba(72, 46, 21, .16);
  position: relative;
  overflow: auto;
  overscroll-behavior: contain;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px - env(safe-area-inset-bottom));
  pointer-events: auto;
  animation: contact-appear .18s ease-out both;
}
.contact-close { position: absolute; top: 3px; right: 3px; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; color: #7d6b59; display: grid; place-items: center; }
.contact-close span { font-size: 26px; line-height: 1; }
.contact-close:hover { color: #973b00; background: #f0e5d9; }
.contact-brand { display: flex; align-items: center; gap: 10px; padding-right: 18px; min-width: 0; }
.contact-app-mark { display: block; flex: 0 0 76px; width: 76px; height: 42px; overflow: hidden; }
.contact-app-logo { display: block; width: 76px; height: 42px; object-fit: contain; }
.contact-app-mark[data-compact-mark="true"] .contact-app-logo { height: 76px; transform: translateY(-14px); }
.contact-heading { min-width: 0; }
.contact-heading h2 { margin: 0; color: #493a2c; font-size: 17px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.contact-app-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; color: #7a6652; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.contact-host:not(:empty)::before { content: "· "; }
.contact-description { margin-top: 12px; font-size: 12px; line-height: 1.6; color: #826f5c; overflow-wrap: anywhere; white-space: pre-line; }
.contact-id-row { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 10px; background: #f0e5d9; }
.contact-id-value { min-width: 0; }
.contact-id-label { display: block; color: #806c58; font-size: 11px; line-height: 1.4; }
.contact-id { display: block; color: #493a2c; font-family: Arial, sans-serif; font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: .2px; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.contact-copy { flex-shrink: 0; min-height: 44px; padding: 0 8px; border: 0; border-radius: 8px; color: var(--contact-accent); background: transparent; font-size: 12px !important; font-weight: 700 !important; }
.contact-copy:hover { background: #e8d9c8; }
.contact-download { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--contact-accent); color: #fff; font-size: 14px; font-weight: 700 !important; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.contact-download:hover { background: #7b3306; color: #fff; }
.contact-download svg { flex: 0 0 16px; }
.contact-feedback { color: #675441; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.contact-feedback:not(:empty) { margin-top: 8px; }
.contact-launcher { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-left: auto; padding: 12px 16px; max-width: 100%; background: #973b00; border: 1px solid #7b3306; border-radius: 25px; box-shadow: 0 3px 15px rgba(72, 46, 21, .18); color: white; font-weight: 700 !important; line-height: 1.4; pointer-events: auto; }
.contact-launcher-text { overflow-wrap: anywhere; }
.contact-launcher svg { flex: 0 0 20px; }
.contact-launcher:hover { background: #7b3306; }
body[data-contact-visible] .scroll-button { left: 16px; right: auto; margin-left: 0; transform: none; bottom: calc(18px + env(safe-area-inset-bottom)); }
@keyframes contact-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 767px) {
  .contact-widget { width: 264px; right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); }
  .contact-panel { padding: 14px; border-radius: 15px; }
  .contact-heading h2 { font-size: 16px; }

  .contact-description { margin-top: 9px; }
  .contact-id-row { margin-top: 9px; }
}
@media (max-width: 359px) {
  .card-style1-content { gap: 8px; }
  .card-style1-buttons { gap: 6px; }
  .card-style1-button { font-size: 12px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .contact-panel { animation: none; } }

@media (min-width: 360px) and (max-width: 767px) { .card-style1-logo { width: 96px; min-width: 96px; } }

/* Fixed image displays preserve the complete source image without cropping. */
.fixed-display-section { max-width: 1200px; margin: 0 auto; padding-bottom: 12px; }
.fixed-display-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.fixed-display-item { flex: 0 1 calc((100% - 16px) * var(--display-share, .5) - .1px); min-width: 0; margin: 0; }
.fixed-display-item[data-single="true"] { flex-basis: 100%; }
.fixed-display-link { display: block; width: 100%; line-height: 0; cursor: zoom-in; }
.fixed-display-link[data-custom-link="true"] { cursor: pointer; }
.fixed-display-link:focus-visible { outline: 3px solid #a86c24; outline-offset: 4px; }
.fixed-display-item img { display: block; width: 100%; height: auto; max-width: 100%; }
@media (max-width: 767px) {
  .fixed-display-grid { flex-direction: column; gap: 16px; }
  .fixed-display-item { flex: none; width: 100%; }
}
