<template>
  <div class="app-root">
    <NuxtPage />
  </div>
</template>

<style>
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --pixel-border: 3px;
  --pixel-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
  
  /* 復古暗色調 RPG 配色 */
  --color-bg: #6b6250;
  --color-panel: #3a3430;
  --color-panel-light: #4a4440;
  --color-border: #2a2420;
  --color-accent: #e89547;
  --color-accent-dark: #d17a2e;
  --color-text: #f4e4c1;
  --color-text-dark: #8b7355;
  
  /* 進度條與狀態 */
  --color-hp: #c44032;
  --color-hunger: #e89547;
  --color-happy: #74b9ff;
  --color-energy: #55efc4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Press Start 2P', cursive;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 響應式字體調整 */
@media (max-width: 480px) {
  body {
    font-size: 10px;
    line-height: 1.5;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  body {
    font-size: 11px;
  }
}

.app-root {
  min-height: 100vh;
  min-height: -webkit-fill-available; /* iOS Safari 支援 */
}
</style>
