:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --coral: #f97316;
  --coral-light: #fff7ed;
  --teal: #0d9488;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background-color: #f8fafc;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.pixelated {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 8px 0;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--dark);
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links > li > a,
.nav-dropdown-btn {
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-dropdown-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  z-index: 200;
  list-style: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-dropdown-menu img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-dropdown-sub {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--slate-400);
}

.btn-nav {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
}

.btn-nav:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px);
}

.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
}

.lang-selector select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  outline: none;
}

/* Breadcrumb Bar (for sub-pages) */
.breadcrumb-bar {
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
  padding: 10px 0;
  font-size: 0.86rem;
  color: var(--slate-600);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-trail a {
  color: var(--slate-600);
  font-weight: 600;
}

.breadcrumb-trail a:hover {
  color: var(--primary);
}

.breadcrumb-trail .current {
  color: var(--dark);
  font-weight: 700;
}

.game-switcher-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.game-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
}

.game-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.game-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #0d9488 100%);
  color: var(--white);
  padding: 82px 0 92px;
  overflow: hidden;
}

.hero-section.hero-purrtime {
  background: linear-gradient(135deg, #1e1b4b 0%, #7c2d12 52%, #d97706 100%);
}

.hero-section.hero-studio {
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.18), transparent 45%),
              linear-gradient(135deg, #0f172a 0%, #1e293b 48%, #1d4ed8 100%);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: url('../assets/fisherpaw/bg_hero_header.png');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  pointer-events: none;
}

.hero-purrtime .hero-bg-overlay {
  background-image: url('../assets/purrtimejob/bg_dining.png');
  opacity: 0.22;
  image-rendering: pixelated;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: #fde68a;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: #fbbf24;
}

.hero-desc {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary-cta,
.btn-playstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-primary-cta:hover,
.btn-playstore:hover {
  background: #fbbf24;
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-playstore svg {
  width: 22px;
  height: 22px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: var(--radius-md);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-app-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 340px;
}

.hero-app-card .main-icon {
  width: 132px;
  height: 132px;
  border-radius: 26px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
  object-fit: cover;
}

.hero-app-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-app-pkg {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.hero-meta-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.16);
}

/* Section Headers */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-subtitle.coral {
  color: var(--coral);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-lead {
  color: var(--slate-600);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* Games Portfolio Grid (Company Home) */
.games-section {
  padding: 84px 0;
  background: var(--white);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.game-card-banner {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card-banner img.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.game-card-banner .game-badge-status {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.status-live {
  background: #10b981;
  color: var(--white);
}

.status-new {
  background: var(--accent);
  color: var(--dark);
}

.status-soon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.game-card-icon {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.85);
  object-fit: cover;
}

.game-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-genre {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.game-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.game-card-desc {
  font-size: 0.94rem;
  color: var(--slate-600);
  margin-bottom: 20px;
  flex: 1;
}

.game-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-card-primary {
  flex: 1;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
}

.btn-card-primary:hover {
  background: var(--primary-hover);
  color: var(--white);
}

.btn-card-secondary {
  text-align: center;
  background: var(--slate-100);
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
}

.btn-card-secondary:hover {
  background: var(--slate-200);
  color: var(--dark);
}

.game-card.coming-soon {
  border-style: dashed;
  border-color: var(--slate-400);
  background: #f8fafc;
}

/* Features Section */
.features-section {
  padding: 84px 0;
  background: var(--white);
}

.features-section.alt-bg {
  background: #f8fafc;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.alt-bg .feature-card {
  background: var(--white);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.8rem;
}

.feature-icon-box img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.feature-card p {
  color: var(--slate-600);
  font-size: 0.95rem;
}

/* Minigames / Screenshots Grid (PurrTime Job) */
.minigames-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.minigame-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.minigame-emoji {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.minigame-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}

.minigame-card p {
  font-size: 0.9rem;
  color: var(--slate-600);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.screenshot-card {
  background: var(--dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
}

.screenshot-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.screenshot-caption {
  padding: 12px 16px;
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
}

/* Characters Section */
.characters-section {
  padding: 84px 0;
  background: var(--slate-100);
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.char-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  transition: transform 0.25s ease;
}

.char-card:hover {
  transform: translateY(-4px);
}

.char-avatar {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 14px;
  display: block;
}

.char-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--dark);
}

.char-role {
  font-size: 0.85rem;
  color: var(--slate-600);
}

/* Compliance & Support Section */
.compliance-section {
  padding: 80px 0;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
}

.compliance-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.compliance-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--dark);
}

.compliance-content p {
  color: var(--slate-600);
  margin-bottom: 20px;
}

.compliance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compliance-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--slate-700);
}

.compliance-list svg {
  color: var(--teal);
  flex-shrink: 0;
}

.compliance-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.policy-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  color: var(--dark);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.policy-card-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(4px);
}

/* Policy & Legal Pages */
.page-header {
  background: var(--dark);
  color: var(--white);
  padding: 54px 0 42px;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-meta {
  color: var(--slate-400);
  font-size: 0.95rem;
}

.policy-body {
  padding: 56px 0 88px;
  background: var(--white);
}

.policy-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.policy-wrapper h2 {
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 34px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--slate-100);
}

.policy-wrapper h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-top: 22px;
  margin-bottom: 10px;
}

.policy-wrapper p {
  color: var(--slate-700);
  margin-bottom: 14px;
}

.policy-wrapper ul,
.policy-wrapper ol {
  margin-left: 22px;
  margin-bottom: 16px;
  color: var(--slate-700);
}

.policy-wrapper li {
  margin-bottom: 8px;
}

.info-alert {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 18px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 22px 0;
  color: var(--slate-700);
}

.warning-alert {
  background: #fef3c7;
  border-left: 4px solid var(--accent);
  padding: 18px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 22px 0;
  color: #78350f;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--slate-400);
  padding: 56px 0 32px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.footer-brand p {
  margin-bottom: 8px;
}

.footer-col h5 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--slate-400);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .games-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .char-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compliance-box {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .games-grid,
  .features-grid,
  .screenshots-grid,
  .char-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .compliance-box {
    padding: 28px 20px;
  }
}
