/* approach.heyoheyo.shop · 互动小游戏站（2026-08-15）全部自包含 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(165deg, #fdf6ec 0%, #f5e6d3 100%);
  color: #5b4632;
  min-height: 100vh; min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.topnav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(253,246,236,.85); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(91,70,50,.1); }
.topnav a { font-size: 13px; padding: 6px 14px; border-radius: 999px; background: rgba(91,70,50,.1); text-decoration: none; color: inherit; }
.topnav .crumb { font-size: 12px; color: rgba(91,70,50,.5); }
.page { max-width: 860px; margin: 0 auto; padding: 76px 20px 50px; text-align: center; }
h1 { font-size: clamp(26px, 5vw, 36px); margin-bottom: 10px; }
.sub { color: rgba(91,70,50,.65); font-size: 15px; line-height: 1.7; margin-bottom: 30px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: 20px; padding: 26px 18px; text-decoration: none; color: inherit; box-shadow: 0 12px 34px rgba(120,90,60,.12); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(120,90,60,.2); }
.card .ic { font-size: 52px; display: block; margin-bottom: 10px; }
.card .nm { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.card .ds { font-size: 13px; color: rgba(91,70,50,.6); line-height: 1.6; }
.footer { text-align: center; padding: 22px 12px 30px; font-size: 12px; color: rgba(91,70,50,.4); }

/* 游戏舞台 */
.stage { position: relative; background: #fff; border-radius: 24px; box-shadow: 0 14px 40px rgba(120,90,60,.14); margin: 0 auto; max-width: 700px; height: min(62vh, 460px); overflow: hidden; touch-action: none; }
.hud { display: flex; justify-content: center; gap: 14px; margin: 16px auto 10px; flex-wrap: wrap; }
.hud .pill { background: #fff; border-radius: 999px; padding: 8px 18px; font-size: 14px; box-shadow: 0 4px 14px rgba(120,90,60,.1); }
.hud .pill b { color: #d97742; }
.msg { min-height: 30px; font-size: 17px; margin-top: 14px; color: #a06030; font-weight: 600; }
.btn-row { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
.btn { border: none; cursor: pointer; font-size: 16px; font-family: inherit; padding: 12px 26px; border-radius: 999px; background: linear-gradient(135deg, #ffd9a0, #ffb37b); color: #5b3a20; font-weight: 700; box-shadow: 0 8px 22px rgba(200,140,70,.3); }
.btn:active { transform: scale(.95); }
.btn.ghost { background: rgba(91,70,50,.08); color: #5b4632; box-shadow: none; }

/* 小狐狸 */
.fox { position: absolute; font-size: 72px; transition: none; }
.person { position: absolute; font-size: 64px; }
.puff { filter: sepia(1) saturate(3) hue-rotate(-20deg); }

/* 猫猫 */
.cat-zone { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cat-emoji { font-size: 180px; transition: transform .2s; }
.cat-emoji.purr { animation: purr .4s ease-in-out infinite; }
@keyframes purr { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* 万用表 */
.meter-box { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.meter { position: relative; width: 260px; height: 200px; background: #2b2b33; border-radius: 20px; box-shadow: inset 0 0 0 6px #3a3a45, 0 16px 40px rgba(0,0,0,.3); }
.meter .screen { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 180px; height: 90px; background: #dff3d8; border-radius: 8px; border: 3px solid #4a4a55; }
.meter .needle-wrap { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 180px; height: 90px; }
.needle { position: absolute; left: 50%; bottom: 4px; width: 4px; height: 62px; background: #c0392b; transform-origin: 50% 100%; transform: rotate(0deg); border-radius: 2px; }
.needle::after { content: ''; position: absolute; top: -6px; left: -5px; width: 14px; height: 14px; background: #c0392b; border-radius: 50%; }
.meter .label { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #b8b8c5; font-size: 12px; letter-spacing: 2px; }
.gyro-btn { position: absolute; bottom: 12px; right: 12px; font-size: 12px; padding: 6px 12px; border-radius: 999px; border: none; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; }
