/* ==========================================================================
   春風れん (Harukaze Ren) - Mobile-First Stylesheet
   Pure CSS, Zero External Dependencies, Pinch-Zoom Friendly
   ========================================================================== */

:root {
  --bg-page: #F7F1EB;
  --bg-app: #FAF4EE;
  --bg-card: #FFFFFF;
  
  --text-primary: #382A3A;
  --text-secondary: #6B5B6E;
  --text-muted: #9E8E9F;
  --text-light: #FFFFFF;
  
  --accent-blush: #E8A598;
  --accent-blush-dark: #D48378;
  --accent-lavender: #9B72B0;
  --accent-lavender-dark: #7B5282;
  --accent-gold: #D6A868;
  --badge-green: #4E8160;

  --border-subtle: rgba(155, 114, 176, 0.14);
  --radius-card: 20px;
  --radius-btn: 22px;
  --radius-badge: 8px;
  --btn-height: 44px;
  
  --shadow-sm: 0 2px 8px rgba(123, 82, 130, 0.06);
  --shadow-md: 0 8px 24px rgba(123, 82, 130, 0.10);

  --font-serif: "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", "Playfair Display", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Outer Desktop/Tablet Centering Container */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  background: radial-gradient(circle at 50% 10%, #FFF9F5 0%, var(--bg-page) 100%);
}

@media (min-width: 480px) {
  .page-wrapper {
    padding: 24px 16px;
  }
}

/* Main Mobile App Container (390px spec) */
.mobile-container {
  width: 100%;
  max-width: 414px;
  min-height: 100vh;
  background: var(--bg-app);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  box-shadow: 0 0 40px rgba(123, 82, 130, 0.08);
}

@media (min-width: 480px) {
  .mobile-container {
    border-radius: 28px;
    border: 1px solid rgba(155, 114, 176, 0.18);
    min-height: auto;
    box-shadow: 0 20px 50px rgba(123, 82, 130, 0.12);
  }
}

/* ==========================================================================
   1. Header Section
   ========================================================================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 0 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-blush-dark);
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: #3D2242;
  letter-spacing: 1px;
}

/* ==========================================================================
   2. Welcome Section
   ========================================================================== */
.welcome-box {
  background: linear-gradient(135deg, rgba(232, 165, 152, 0.12) 0%, rgba(155, 114, 176, 0.10) 100%);
  border: 1px solid rgba(155, 114, 176, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.welcome-tagline {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: #4C2D54;
  letter-spacing: 0.5px;
}

.welcome-subtext {
  font-size: 11.5px;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}

/* ==========================================================================
   3. VN Cards (Exactly 2 Cards)
   ========================================================================== */
.games-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 8px;
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 12px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.game-card:active {
  transform: scale(0.985);
}

.game-thumb-wrapper {
  width: 130px;
  min-width: 130px;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #EFE7E3;
}

.game-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-badge);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge-new {
  background: rgba(212, 131, 120, 0.92);
  color: #ffffff;
}

.badge-free {
  background: rgba(78, 129, 96, 0.92);
  color: #ffffff;
}

.game-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 2px 2px 0;
}

.game-title {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.game-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
  color: var(--accent-gold);
  opacity: 0.7;
}

.game-divider::before, .game-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(214, 168, 104, 0.3);
}

.game-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.game-btn {
  height: var(--btn-height);
  background: linear-gradient(135deg, #9B72B0 0%, #D88A8A 100%);
  color: #ffffff;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(155, 114, 176, 0.28);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.game-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(155, 114, 176, 0.3);
}
