/* Digram World - Global Personality Diagnosis */
/* ============================================ */

/* Reset & Base */
.dgw-app { font-family: 'Noto Sans JP', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #333; max-width: 720px; margin: 0 auto; line-height: 1.7; -webkit-font-smoothing: antialiased; }
.dgw-result { font-family: 'Noto Sans JP', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #333; max-width: 960px; margin: 0 auto; line-height: 1.7; -webkit-font-smoothing: antialiased; }
.dgw-app *, .dgw-result * { box-sizing: border-box; }
/* No h1-h4 tags used — SWELL heading styles do not apply */

/* === QUIZ SCREENS === */
.dgw-screen { display: none; }
.dgw-screen.dgw-active { display: block; }

/* Start Screen */
.dgw-start-hero { text-align: center; padding: 48px 20px 40px; background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #7c3aed 100%); border-radius: 16px; color: #fff; }
.dgw-logo-area { margin-bottom: 24px; }
.dgw-title { font-size: 32px; font-weight: 800; letter-spacing: 2px; line-height: 1.2; margin: 0 0 12px; }
.dgw-subtitle { font-size: 14px; opacity: 0.85; margin: 0; letter-spacing: 1px; }
.dgw-desc { font-size: 14px; line-height: 1.8; opacity: 0.9; margin: 0 auto 28px; max-width: 480px; }
.dgw-hero-chars { display: flex; justify-content: center; gap: 12px; margin: 0 auto 28px; flex-wrap: wrap; }
.dgw-hero-char-img { width: 64px; height: 64px; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,0.15); padding: 4px; transition: transform 0.3s; }
.dgw-hero-char-img:hover { transform: scale(1.15); }
.dgw-note { font-size: 12px; opacity: 0.6; margin: 16px 0 0; }

/* About Section */
.dgw-about { margin: 40px auto 0; max-width: 640px; padding: 32px 24px; background: #f8fafc; border-radius: 12px; text-align: left; }
.dgw-about-title { font-size: 18px; font-weight: 700; color: #1e3a5f; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid #e2e8f0; }
.dgw-about-text { font-size: 14px; line-height: 2.0; color: #444; margin: 0; }

/* Buttons */
.dgw-btn { display: inline-block; padding: 16px 48px; border: none; border-radius: 50px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s; text-decoration: none; }
.dgw-btn-start { background: #fff; color: #2563eb; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.dgw-btn-start:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.3); }
.dgw-btn-submit { background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; width: 100%; max-width: 400px; margin: 24px auto; display: block; box-shadow: 0 4px 16px rgba(37,99,235,0.3); }
.dgw-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,99,235,0.4); }

/* Progress */
.dgw-progress { background: #e5e7eb; border-radius: 8px; height: 6px; margin: 0 0 8px; overflow: hidden; }
.dgw-progress-bar { height: 100%; background: linear-gradient(90deg, #2563eb, #7c3aed); border-radius: 8px; width: 5%; transition: width 0.4s ease; }
.dgw-progress-text { text-align: center; font-size: 13px; color: #888; margin-bottom: 20px; }

/* Questions */
.dgw-question { padding: 24px 0; }
.dgw-q-num { font-size: 14px; font-weight: 700; color: #2563eb; margin-bottom: 8px; }
.dgw-q-text { font-size: 18px; font-weight: 600; line-height: 1.6; margin-bottom: 20px; min-height: 60px; }
.dgw-answers { display: flex; flex-direction: column; gap: 10px; }
.dgw-answer { display: block; }
.dgw-answer input { display: none; }
.dgw-answer-btn { display: block; padding: 14px 20px; border: 2px solid #e5e7eb; border-radius: 12px; text-align: center; font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.2s; background: #fff; }
.dgw-answer-btn:hover { border-color: #2563eb; background: #eff6ff; }
.dgw-answer input:checked + .dgw-answer-btn { border-color: #2563eb; background: #2563eb; color: #fff; }
.dgw-answer-mid { }

/* === RESULT PAGE === */

/* Language Switcher */
.dgw-lang-switcher { display: flex; justify-content: center; gap: 8px; padding: 16px 0; }
.dgw-lang-btn { padding: 6px 16px; border: 1px solid #ddd; border-radius: 20px; font-size: 13px; text-decoration: none; color: #666; transition: all 0.2s; }
.dgw-lang-btn:hover { border-color: #2563eb; color: #2563eb; }
.dgw-lang-btn.dgw-lang-active { background: #2563eb; color: #fff; border-color: #2563eb; }

/* Hero Section */
.dgw-hero { border-radius: 16px; overflow: hidden; margin-top: 32px; margin-bottom: 32px; box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.dgw-hero-top { background: var(--hero-bg, #2563eb); padding: 24px 24px 20px; color: #fff; text-align: center; }
.dgw-hero-group { display: inline-block; padding: 4px 16px; border: 1px solid rgba(255,255,255,0.4); border-radius: 20px; font-size: 13px; margin-bottom: 12px; }
.dgw-hero-catch { font-size: 22px; font-weight: 700; margin: 0; line-height: 1.4; }
.dgw-hero-body { background: #fff; padding: 28px 24px; display: flex; flex-direction: column; }
.dgw-hero-row-top { display: flex; flex-direction: row; gap: 20px; align-items: center; margin-bottom: 20px; }
.dgw-hero-char { width: 160px; height: 160px; flex-shrink: 0; }
.dgw-hero-char img { width: 100%; height: 100%; object-fit: contain; }
.dgw-hero-info { flex: 1; }
.dgw-hero-type-label { font-size: 12px; color: #888; margin-bottom: 4px; }
.dgw-hero-type-name { font-size: 22px; font-weight: 800; color: #333; margin-bottom: 4px; }
.dgw-hero-type-sub { font-size: 14px; color: #666; margin-bottom: 4px; }
.dgw-hero-pattern-no { font-size: 13px; color: #aaa; }
.dgw-hero-row-graph { text-align: center; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.dgw-hero-row-graph img { max-width: 520px; width: 100%; height: auto; object-fit: contain; }

/* Content Sections */
.dgw-sections { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.dgw-section { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.dgw-section-title { font-size: 16px; font-weight: 700; color: #333; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e5e7eb; }
.dgw-section-text { font-size: 14px; line-height: 1.9; margin: 0; color: #555; }
.dgw-section-cheer { background: linear-gradient(135deg, #fef9c3, #fef3c7); border: 1px solid #fde68a; }
.dgw-section-cheer .dgw-section-title { color: #92400e; border-bottom-color: #fde68a; }
.dgw-cheer-text { font-weight: 500; color: #78350f; }

/* SNS Share */
.dgw-share { text-align: center; padding: 24px 0; }
.dgw-share-label { font-size: 14px; color: #888; margin-bottom: 12px; }
.dgw-share-buttons { display: flex; justify-content: center; gap: 12px; }
.dgw-share-btn { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.dgw-share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.dgw-share-x { background: #000; }
.dgw-share-fb { background: #1877f2; }
.dgw-share-kakao { background: #fee500; color: #3c1e1e; }
.dgw-share-line { background: #06c755; }

/* Back & Links */
.dgw-back { text-align: center; margin: 16px 0; }
.dgw-back-btn { display: inline-block; padding: 12px 32px; border: 2px solid #2563eb; border-radius: 50px; color: #2563eb; text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.2s; }
.dgw-back-btn:hover { background: #2563eb; color: #fff; }
.dgw-jp-link { text-align: center; padding: 16px 0 32px; }
.dgw-jp-link a { font-size: 13px; color: #888; text-decoration: none; }
.dgw-jp-link a:hover { color: #2563eb; }

/* TOP Footer Links */
.dgw-top-footer { text-align: center; margin-top: 32px; padding: 16px 0 0; }
.dgw-top-link { display: inline-block; padding: 10px 28px; border: 2px solid #2563eb; border-radius: 50px; color: #2563eb; text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.2s; margin: 6px 8px; }
.dgw-top-link:hover { background: #2563eb; color: #fff; }
.dgw-top-link-sub { border-color: #94a3b8; color: #64748b; font-weight: 400; font-size: 13px; }
.dgw-top-link-sub:hover { background: #64748b; color: #fff; border-color: #64748b; }

/* === 31 TYPES LIST PAGE === */
.dgw-list-page { padding: 32px 16px; }
.dgw-list-title { font-size: 24px; font-weight: 800; text-align: center; margin: 0 0 12px; color: #1e3a5f; }
.dgw-list-desc { font-size: 14px; text-align: center; color: #666; margin: 0 0 32px; }
.dgw-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.dgw-list-card { display: block; background: #fff; border-radius: 12px; padding: 16px; text-decoration: none; color: #333; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 2px solid #f1f5f9; transition: all 0.2s; }
.dgw-list-card:hover { border-color: var(--card-color, #2563eb); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.dgw-list-card-images { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.dgw-list-card-char { width: 72px; height: 72px; object-fit: contain; }
.dgw-list-card-graph { width: 72px; height: 72px; object-fit: contain; }
.dgw-list-card-text { text-align: center; }
.dgw-list-card-no { font-size: 11px; color: #aaa; font-weight: 600; letter-spacing: 1px; }
.dgw-list-card-catch { font-size: 13px; font-weight: 600; line-height: 1.5; margin: 4px 0 0; color: #333; }

/* === GUIDE PAGE === */
.dgw-guide-page { padding: 32px 16px; }
.dgw-guide-title { font-size: 22px; font-weight: 800; text-align: center; margin: 0 0 32px; color: #1e3a5f; }
.dgw-guide-section { margin-bottom: 32px; }
.dgw-guide-section .dgw-guide-h3 { font-size: 17px; font-weight: 700; color: #1e3a5f; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e2e8f0; }
.dgw-guide-section .dgw-guide-h4 { font-size: 14px; font-weight: 700; color: #333; margin: 16px 0 8px; }
.dgw-guide-section p { font-size: 14px; line-height: 1.9; color: #555; margin: 0 0 8px; }
.dgw-guide-section ul { font-size: 14px; line-height: 1.9; color: #555; margin: 8px 0; padding-left: 24px; }
.dgw-guide-section li { margin-bottom: 4px; }

/* === PC ONLY === */
@media (min-width: 601px) {
    .dgw-result { padding-top: 32px; }
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .dgw-title { font-size: 24px; }
    .dgw-hero-catch { font-size: 18px; }
    .dgw-hero-row-top { gap: 12px; }
    .dgw-hero-char { width: 100px; height: 100px; }
    .dgw-hero-type-name { font-size: 18px; }
    .dgw-hero-type-sub { font-size: 13px; }
    .dgw-q-text { font-size: 16px; }
    .dgw-list-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .dgw-list-card { padding: 12px; }
    .dgw-list-card-char, .dgw-list-card-graph { width: 56px; height: 56px; }
    .dgw-btn { padding: 14px 36px; font-size: 15px; }
}