/* 隣の大家さん Web版 — 共通スタイル（いつもダークのレトロ調。iOS版と同じ色。ゲーム画面は landlord.css） */
:root {
  --bg: #0d0a1f;
  --panel: #1c1738;
  --line: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --dim: rgba(255, 255, 255, 0.6);
  --cyan: #2ee6f2;
  --pink: #ff529e;
  --yellow: #ffdb40;
  --green: #59f273;
  --orange: #ff9433;
  --purple: #a873ff;
  --red: #ff4d4d;
  --blue: #4d8cff;
  --f-retro: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --f-round: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  --f-ui: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #05040c;
  color: var(--text);
  font-family: var(--f-ui);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

#app {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

/* PC・タブレット：スマホ幅の画面を真ん中に置く */
@media (min-width: 520px) {
  body { background: radial-gradient(ellipse at 50% 30%, #1a1238 0%, #05040c 70%); }
  #app { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 24px 90px rgba(0, 0, 0, 0.7); }
}

button { font: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.screen { position: absolute; inset: 0; overflow: hidden; }
.dim { color: var(--dim); }

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* 読み込み中・読み込みに失敗したとき */
.loading {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font: 800 18px var(--f-retro); color: var(--dim);
}
.load-error {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  height: 100%; padding: 24px; text-align: center; font-weight: 800;
}
.load-error .retro-btn { margin-top: 14px; }

/* 小さな四角いボタン（⏸ など） */
.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text);
  background: var(--panel); border-radius: 10px;
}
.icon-btn:active { filter: brightness(1.3); }

/* 大きなボタン（iOS版 RetroButton） */
.retro-btn {
  font: 800 17px var(--f-retro);
  color: var(--bg);
  background: var(--c, var(--cyan));
  padding: 12px 22px;
  min-width: 140px;
  border-radius: 12px;
  box-shadow: 0 0 16px color-mix(in srgb, var(--c, var(--cyan)) 60%, transparent);
}
.retro-btn:active { transform: scale(0.97); filter: brightness(1.1); }
