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

html, body {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at top, #44262a 0%, #1a1113 36%, #080607 100%);
  overflow: hidden;
  font-family: "Yuji Syuku", "Hiragino Mincho ProN", "Hiragino Kaku Gothic ProN", serif;
  color: #f6efe8;
  user-select: none;
}

#wrap {
  position: relative;
  width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
}

#game {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  image-rendering: pixelated;
  background: #1b1413;
  cursor: crosshair;
}

/* 画面オーバーレイ */
.screen {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(80,30,28,.55), rgba(12,6,8,.94));
  backdrop-filter: blur(2px);
  z-index: 10;
}
.screen.hidden { display: none; }

.panel {
  text-align: center;
  padding: 38px 46px;
  border: 2px solid #d34d43;
  background: linear-gradient(180deg, rgba(42,20,18,.92), rgba(16,10,12,.9));
  box-shadow: 0 0 0 4px rgba(0,0,0,.35), 0 0 40px rgba(211,77,67,.2);
  max-width: 560px;
}

.panel h1 {
  font-size: 58px;
  letter-spacing: 4px;
  font-weight: 800;
  color: #fff7ef;
  text-shadow: 0 3px 0 #000;
}
.panel h1 span { color: #ff6257; }

.tag {
  letter-spacing: 3px;
  font-size: 13px;
  color: #d8b8a5;
  margin: 6px 0 22px;
  text-transform: uppercase;
}

.brief {
  text-align: left;
  font-size: 14px;
  line-height: 1.9;
  color: #f0dfd0;
  background: rgba(255,245,236,.08);
  padding: 16px 20px;
  margin-bottom: 24px;
  border-left: 3px solid #ff6257;
}
.brief ul { list-style: none; margin: 10px 0; }
.brief li { padding: 1px 0; }
.brief b { color: #ffe38a; }
.brief .hint { margin-top: 12px; color: #ffb1a4; font-size: 13px; }

/* アップグレード選択カード */
.perks {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 10px;
}
.perk {
  flex: 1;
  max-width: 170px;
  padding: 18px 14px;
  background: rgba(42,22,18,.92);
  border: 2px solid #6a4a3a;
  cursor: pointer;
  transition: transform .1s, border-color .15s, background .15s;
}
.perk:hover {
  border-color: #ffe38a;
  background: rgba(78,32,20,.94);
  transform: translateY(-4px);
}
.perk .picon { font-size: 34px; margin-bottom: 8px; }
.perk .pname { font-size: 15px; font-weight: 700; color: #fff8f0; margin-bottom: 6px; }
.perk .pdesc { font-size: 12px; color: #d4bcae; line-height: 1.5; }

button {
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  background: #d34d43;
  border: none;
  padding: 14px 40px;
  cursor: pointer;
  transition: transform .08s, background .15s;
  box-shadow: 0 4px 0 #7b221d;
}
button:hover { background: #f06257; }
button:active { transform: translateY(3px); box-shadow: 0 1px 0 #7b221d; }
