:root {
    --christmas-red: #D42426;
    --christmas-green: #0F5132;
    --snow-white: #F0F4F7;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--christmas-green), #1a472a);
    color: white;
    position: relative;
    overflow-x: hidden;
}

#title-h1,
#subtitle-h2 {
    font-family: "Jua", serif;
}

header {
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

header h1 {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 3.5rem;
    margin: 0;
    color: var(--snow-white);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(255,255,255,0.5); }
    to { text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 30px rgba(255,255,255,0.6); }
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

main {
    padding: 2em;
}

.ranking-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.ranking-section h2 {
    font-family: 'Mountains of Christmas', cursive;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--snow-white);
}

.ranking-list {
    list-style: none;
    padding: 0;
}

.ranking-list p {
    background: rgba(255, 255, 255, 0.9);
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: #000;
}

.ranking-list p:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.2);
}

.rank-number, .player-info, .rank-stats {
    color: #000;
}

footer {
    text-align: center;
    padding: 1em 0;
    background-color: #4CAF50;
    color: white;
    position: fixed;
    width: 100%;
    bottom: 0;
}

#ranking {
  max-width: 400px;
  margin: 0 auto;
  padding: 10px;
  background: linear-gradient(135deg, #fff, #f0f0f0);
  border-radius: 8px;
  padding: 1rem;
}
.rank-item {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem;
  transition: background 0.2s;
  transform-origin: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.rank-item:hover {
  background: #f9f9f9;
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.rank-number {
  font-weight: bold;
}
.rank-gift {
  color: blue;
}
.ranking-header {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    header h1 { 
        font-size: 2rem; 
        padding: 0 1rem;
    }
    .ranking-section { 
        margin: 1rem; 
        padding: 1rem; 
        margin-bottom: 5rem; /* 모바일에서 버튼과 겹치지 않도록 */
    }
    .ranking-list p { 
        font-size: 0.9rem; 
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@keyframes floatButton {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.register-button {
    animation: floatButton 2s ease-in-out infinite;
}
