/* 顶栏尺寸、游戏可用高度与三种入口的统一外观。 */
:root {
  --game-bar-height: calc(44px + env(safe-area-inset-top, 0px));
  --site-topbar-height: 0px;
  --game-content-height: calc(100vh - var(--site-topbar-height));
}
@supports (height: 100dvh) {
  :root { --game-content-height: calc(100dvh - var(--site-topbar-height)); }
}
.standalone-game { --site-topbar-height: var(--game-bar-height); }
.standalone-game body { margin-top: var(--site-topbar-height); }
.site-return-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  gap: 12px;
  height: var(--game-bar-height);
  min-height: var(--game-bar-height);
  margin: 0;
  padding: calc(4px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 4px max(14px, env(safe-area-inset-left, 0px));
  background: #fff6f4;
  color: #483e3a;
  border-bottom: 1px solid #edd9d7;
  font: 700 1rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  box-sizing: border-box;
}
.site-return-bar--fixed { position: fixed; inset: 0 0 auto 0; z-index: 10001; }
.site-return-bar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #483e3a;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.site-return-bar .site-return-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #a43759;
  color: #fff;
  font: inherit;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(164, 55, 89, .2);
  transition: background .18s ease;
  box-sizing: border-box;
}
.site-return-bar .site-return-exit:hover { background: #8e2b49; }
.site-return-bar .site-return-exit:active { background: #7d243f; }
.site-return-bar .site-return-exit:focus-visible { outline: 2px solid #a43759; outline-offset: 2px; }
