.endless-intro-open { overflow: hidden; }
.endless-intro {
  position: fixed; inset: 0; z-index: 1000; box-sizing: border-box;
  margin: 0; border: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  display: grid; grid-template-rows: auto minmax(0, 1fr) 3px auto;
  padding: max(16px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  color: #f4ebd0; background: radial-gradient(ellipse at 50% 0, #243729 0, #111914 65%);
  font: 15px/1.4 "PingFang SC", "Microsoft YaHei", sans-serif;
  overscroll-behavior: contain;
}
.endless-intro:not([open]) { display: none; }
.endless-intro::backdrop { background: #111914; }
.endless-intro *, .endless-intro *::before, .endless-intro *::after { box-sizing: border-box; }
.endless-intro-header { display: flex; align-items: baseline; gap: 14px; padding: 0 2px 12px; }
.endless-intro-header h1 { margin: 0; font-size: 24px; letter-spacing: .08em; font-weight: 700; }
.endless-intro-eyebrow { color: #b8c7a6; font-size: 13px; letter-spacing: .08em; margin-right: auto; }
.endless-intro-tag { color: #c5af7c; font-size: 12px; }
.endless-intro-frame { min-height: 0; overflow: hidden; background: #050705; border: 1px solid #667046; border-bottom: 0; border-radius: 7px 7px 0 0; }
.endless-intro-video { display: block; width: 100%; height: 100%; object-fit: contain; }
.endless-intro-progress { display: block; width: 100%; height: 3px; border: 0; border-radius: 0; appearance: none; background: #303b2a; color: #b0c575; }
.endless-intro-progress::-webkit-progress-bar { background: #303b2a; }
.endless-intro-progress::-webkit-progress-value { background: #b0c575; }
.endless-intro-progress::-moz-progress-bar { background: #b0c575; }
.endless-intro-footer { display: flex; align-items: center; gap: 18px; padding: 15px 0 0; }
.endless-intro-controls { display: flex; align-items: center; gap: 8px; }
.endless-intro button { cursor: pointer; min-height: 44px; border: 1px solid #7b8652; border-radius: 7px; padding: 10px 22px; color: #f5efd7; background: #30442a; font: inherit; font-weight: 600; white-space: nowrap; touch-action: manipulation; }
.endless-intro button:hover { background: #415836; border-color: #c1c68a; }
.endless-intro button:focus-visible { outline: 3px solid #f2d997; outline-offset: 3px; }
.endless-intro .endless-intro-play { background: #758847; border-color: #aebc75; color: #fff6d6; }
.endless-intro .endless-intro-play:hover { background: #8a9d54; }
.endless-intro .endless-intro-mute { padding-inline: 14px; background: transparent; border-color: #485441; font-size: 13px; }
.endless-intro-caption { color: #b2bba8; font-size: 13px; }
.endless-intro .endless-intro-skip { margin-left: auto; color: #e5d6b1; background: #3a3020; border-color: #817048; }
.endless-intro .endless-intro-skip:hover { background: #53432a; border-color: #c2a872; }
.endless-intro [hidden] { display: none !important; }
.endless-intro-notice { position: fixed; z-index: 1001; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: min(90vw, 540px); padding: 12px 20px; border: 1px solid #a09d68; border-radius: 8px; background: #253121f2; color: #fff0ce; font: 14px/1.5 "PingFang SC", "Microsoft YaHei", sans-serif; pointer-events: none; }
@media (max-width: 700px) {
  .endless-intro { padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  .endless-intro-header { gap: 10px; padding-bottom: 8px; }
  .endless-intro-header h1 { font-size: 18px; }
  .endless-intro-eyebrow { font-size: 11px; letter-spacing: 0; }
  .endless-intro-footer { gap: 8px; padding-top: 9px; flex-wrap: wrap; }
  .endless-intro button { padding: 8px 13px; font-size: 13px; }
  .endless-intro-caption { order: 3; flex-basis: 100%; text-align: center; font-size: 11px; }
}
@media (max-height: 450px) and (orientation: landscape) {
  .endless-intro-header { padding-bottom: 6px; }
  .endless-intro-header h1 { font-size: 17px; }
  .endless-intro-footer { padding-top: 7px; flex-wrap: nowrap; }
  .endless-intro-caption { display: none; }
  .endless-intro button { min-height: 38px; padding-block: 6px; }
}

/* v1.35（10-20 用户：整体加载进度做成风格化的进度条）：木牌 + 长藤蔓的启动进度。原生进度条保留但隐藏，数值从它读。 */
#status-progress { opacity: 0 !important; pointer-events: none; }
.endless-boot { position: fixed; left: 50%; bottom: max(7vh, 36px); transform: translateX(-50%); z-index: 20; width: min(560px, 86vw); box-sizing: border-box; padding: 16px 22px 14px; border: 4px solid #3b2210; border-radius: 18px; background: linear-gradient(#8a5a2d, #6d4421); box-shadow: 0 8px 24px #0008, inset 0 2px 0 #b78449; color: #fff3cf; font: 16px/1.4 "PingFang SC", "Microsoft YaHei", sans-serif; text-align: center; pointer-events: none; }
.endless-boot[hidden] { display: none; }
.endless-boot-title { font-size: 21px; font-weight: 700; letter-spacing: 2px; text-shadow: 0 2px 0 #3b2210; }
.endless-boot-track { position: relative; height: 26px; margin: 12px 6px 8px; border: 3px solid #3b2210; border-radius: 16px; background: #2d3818; overflow: visible; }
.endless-boot-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 13px; background: repeating-linear-gradient(-45deg, #6fb532 0 14px, #7fc63c 14px 28px); box-shadow: inset 0 4px 0 #a7e05e66; transition: width .25s ease-out; background-size: 40px 40px; animation: endless-boot-flow 1.2s linear infinite; }
.endless-boot-fill::after { content: ""; position: absolute; right: -19px; top: 50%; width: 38px; height: 38px; transform: translateY(-50%); background: radial-gradient(circle at 50% 50%, #ffe36a 0 42%, #f6b51c 43% 52%, transparent 53%), conic-gradient(from 0deg, #f8c02a 0 8%, transparent 8% 12.5%, #f8c02a 12.5% 20.5%, transparent 20.5% 25%, #f8c02a 25% 33%, transparent 33% 37.5%, #f8c02a 37.5% 45.5%, transparent 45.5% 50%, #f8c02a 50% 58%, transparent 58% 62.5%, #f8c02a 62.5% 70.5%, transparent 70.5% 75%, #f8c02a 75% 83%, transparent 83% 87.5%, #f8c02a 87.5% 95.5%, transparent 95.5%); border-radius: 50%; animation: endless-boot-spin 4s linear infinite; filter: drop-shadow(0 1px 1px #3b2210); }
.endless-boot.waiting .endless-boot-fill { width: 100% !important; animation-duration: .6s; }
.endless-boot-meta { display: flex; justify-content: space-between; font-size: 14px; color: #f3dcaa; }
.endless-boot-tip { margin-top: 6px; min-height: 20px; font-size: 13px; color: #e6cf98; }
@keyframes endless-boot-flow { to { background-position: 40px 0; } }
@keyframes endless-boot-spin { to { transform: translateY(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .endless-boot-fill, .endless-boot-fill::after { animation: none; } }
/* v1.37（10-21 用户：开场加载图太丑）：Image 2.5 画的夜晚暗房花园铺满底图，替掉 Godot 默认 logo；木牌左上角站一株举着底片的豌豆。 */
#status.endless-boot-scene { background: #111914 url("boot-bg-v137.jpg") center / cover no-repeat !important; }
#status.endless-boot-scene #status-splash { display: none !important; }
#status.endless-boot-scene::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, #111914cc); pointer-events: none; }
#status.endless-boot-scene #status-notice { position: relative; z-index: 21; }
.endless-boot { padding-left: 120px; }
.endless-boot-mascot { position: absolute; left: -26px; bottom: 6px; width: 138px; height: auto; filter: drop-shadow(0 6px 8px #0009); animation: endless-boot-bob 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes endless-boot-bob { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-4px); } }
@media (max-width: 520px) { .endless-boot { padding-left: 22px; padding-top: 70px; } .endless-boot-mascot { left: 50%; bottom: auto; top: -64px; width: 104px; margin-left: -52px; } }
@media (prefers-reduced-motion: reduce) { .endless-boot-mascot { animation: none; } }
