/* ── index.html 전용 스타일 ── */
:root { --gold: #ffeaa7; }
body { -webkit-tap-highlight-color: transparent; word-break: keep-all; min-height: 100vh; }

.main-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.glass-card { padding: 2.2rem; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.bento-large { grid-column: span 2; }

@keyframes spin { to { transform: rotate(360deg); } }

.animal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 1.5rem; }

@media (max-width: 992px) {
    .main-layout { grid-template-columns: 1fr; padding: 0 16px; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large { grid-column: span 1; }
    .article-title { font-size: 1.8rem; }
}

.blog-card-link {
    text-decoration: none; padding: 1.8rem;
    background: rgba(255,255,255,0.02); border-radius: 24px;
    border: 1px solid var(--glass-border); transition: 0.3s; display: block;
}
.blog-card-link:hover { background: rgba(255,255,255,0.08); border-color: var(--primary); }
.blog-card-tag { font-size: 0.75rem; font-weight: 800; display: block; margin-bottom: 10px; }
.blog-card-title { color: #fff; margin-bottom: 10px; font-size: 1.2rem; }
.blog-card-excerpt { font-size: 0.9rem; color: var(--text-sub); line-height: 1.5; }

@media (max-width: 768px) {
    .glass-card { padding: 1.5rem; }
    .blog-thumb { height: 140px; }
    .tab-btn { font-size: 0.85rem; padding: 10px 6px; }
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(162, 155, 254, 0.15);
    color: var(--primary);
    border: 1px solid rgba(162, 155, 254, 0.3);
    margin-bottom: 1.2rem;
}

.article-title {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.article-text { color: var(--text-sub); font-size: 1.1rem; margin-bottom: 1.5rem; }

.btn-main {
    width: 100%; padding: 20px; border-radius: 20px; border: none;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe, #00cec9);
    background-size: 200% 200%;
    color: white; font-size: 1.15rem; font-weight: 900;
    cursor: pointer; box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: aurora 5s ease infinite;
}
@keyframes aurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.btn-main:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(108, 92, 231, 0.6); }

.input-group { background: rgba(0,0,0,0.2); border-radius: 20px; padding: 1.5rem; border: 1px solid var(--glass-border); margin-bottom: 1.5rem; }
.input-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-sub); margin-bottom: 10px; text-align: left; }
.grid-inputs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 1.2rem; }
.text-input { background: rgba(255,255,255,0.05); color: #fff; width: 100%; padding: 15px; border: 1px solid var(--glass-border); border-radius: 14px; font-size: 1rem; text-align: center; box-sizing: border-box; transition: 0.3s; }
.text-input:focus { border-color: var(--primary); outline: none; background: rgba(255,255,255,0.1); }
.text-input:disabled { opacity: 0.35; cursor: not-allowed; }
select.text-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a29bfe' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; text-align: left; padding-left: 15px; }
select.text-input option { background: #1a1744; color: #fff; padding: 8px; }

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
    appearance: none;
}

.ball { width: 42px; height: 42px; line-height: 42px; border-radius: 50%;
    font-weight: 900; font-size: 1rem; display: inline-block; text-align: center;
    color: #fff; margin: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.ball-1 { background: #f9ca24; }
.ball-11 { background: #4834d4; }
.ball-21 { background: #eb4d4b; }
.ball-31 { background: #747d8c; }
.ball-41 { background: #2ecc71; }

.lotto-line { display: flex; justify-content: center; flex-wrap: wrap; padding: 10px; background: rgba(255,255,255,0.03); border-radius: 20px; margin-bottom: 12px; border: 1px solid var(--glass-border); position: relative; }
.lotto-line.best { border-color: var(--primary); background: rgba(162, 155, 254, 0.08); }
.best-badge { position: absolute; top: -10px; left: 10px; background: var(--primary); color: #0f0c29; font-size: 0.65rem; font-weight: 900; padding: 2px 8px; border-radius: 6px; }

.tab-btn { flex: 1; padding: 12px; border-radius: 12px; border: 1px solid var(--glass-border); background: transparent; color: var(--text-sub); cursor: pointer; font-weight: 700; transition: 0.3s; }
.tab-btn.active { background: var(--primary); color: #0f0c29; border-color: var(--primary); }

.fortune-info-box { background: rgba(0,0,0,0.3); border-radius: 20px; padding: 20px; border-left: 5px solid var(--primary); text-align: left; }
.fortune-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }
.fortune-item { background: rgba(255,255,255,0.03); padding: 15px; border-radius: 16px; border: 1px solid var(--glass-border); text-align: left; }
.fortune-label { font-size: 0.7rem; color: var(--text-sub); font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
.fortune-val { font-size: 0.9rem; font-weight: 700; color: #fff; line-height: 1.4; }

@media (max-width: 480px) {
    .article-title { font-size: 1.5rem; }
    .fortune-grid { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large { grid-column: span 1; }
    .share-container { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .share-btn { padding: 12px 8px; font-size: 0.7rem; min-height: 44px; }
    .animal-grid { grid-template-columns: repeat(3, 1fr); }
    .ball { width: 36px; height: 36px; line-height: 36px; font-size: 0.85rem; margin: 3px; }
    .grid-inputs { gap: 8px; }
    .text-input { padding: 12px 8px; font-size: 16px; }
    .blog-thumb { height: 120px; }
    .tab-btn { font-size: 0.8rem; padding: 10px 4px; }
}
