/*
 * Unity Studio Portfolio — カスタムCSS
 * Tailwind CDN を補完するスタイル
 */

/* フォント設定 */
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'BIZ UDPGothic',
               'Yu Gothic', 'Meiryo', sans-serif;
}

/* 1行省略 */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

/* アスペクト比（Tailwind v3未満の環境向け） */
.aspect-video {
  aspect-ratio: 16 / 9;
}

/* ゲームiframe全体を覆う */
#game-iframe {
  border: none;
}

/* ファイルラベルのhover時にネストinputも反応させる */
label:has(input[type="file"]:focus-within) {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* スクロールバーを細くする（WebKit系） */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* テキスト選択色 */
::selection {
  background-color: #fed7aa; /* orange-200 */
  color: #1e293b;
}

/* フォームフォーカス時のリングをオレンジに統一 */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* ページ遷移のフェードイン（シンプル） */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
main {
  animation: fadeIn 0.3s ease forwards;
}

/* ゲームカードのサムネイルオーバーレイ */
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* ロールラジオボタン（has: が効かないブラウザ向けフォールバック） */
input[type="radio"]:checked + div > p:first-child {
  color: #f97316;
}

/* プレイヤーオーバーレイのグラデーション */
#play-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
