* { box-sizing: border-box; }
:root {
  --theme: #FF8A3D;
  --landscape-width: min(100vw, 177.777778dvh);
  --landscape-height: min(56.25vw, 100dvh);
}
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #201a16;
  color: #1C1915;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}
/* 固定逻辑画布为横版 16:9；不依赖浏览器支持方向锁定。 */
.page {
  position: absolute;
  left: 0;
  top: 0;
  width: min(100vw, 177.777778vh);
  height: min(56.25vw, 100vh);
  width: var(--landscape-width);
  height: var(--landscape-height);
  max-width: none;
  margin: 0;
  padding: 20px;
  overflow: auto;
  background: #F6F3EC;
}
.top h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.sub { margin: 8px 0 0; color: #756d60; font-size: 14px; }
.card { margin-top: 20px; background: #FFFCF7; border: 1px solid #E4DDD0; border-radius: 16px; padding: 18px; line-height: 1.6; font-size: 15px; }
code { font-size: 13px; background: #E8E4DC; padding: 1px 6px; border-radius: 6px; }
/* [STATE] 已加入横屏16:9容器；原工程尚无大厅、牌桌及规则代码。 */
