* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; line-height: 1.6; color: #1d1d1f; background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 50%, #f5f5f7 100%); min-height: 100vh; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: #0071e3; text-decoration: none; transition: all 0.25s ease; }
a:hover { color: #1557b0; }

header { background: rgba(255,255,255,0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 16px 0; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(0,0,0,0.05); }
header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.logo { font-size: 24px; font-weight: 600; color: #1d1d1f; letter-spacing: -0.5px; }
.logo:hover { color: #0071e3; }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav a { color: #1d1d1f; font-weight: 500; padding: 8px 14px; border-radius: 20px; font-size: 14px; transition: all 0.25s; }
nav a:hover { background: rgba(0,113,227,0.1); color: #0071e3; }
nav a.active { background: #0071e3; color: #fff; }

.hero { background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%); color: #1d1d1f; padding: 70px 0; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.05); }
.hero h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 700; margin-bottom: 8px; letter-spacing: -1px; }
.hero p { font-size: clamp(16px, 2.5vw, 21px); color: #86868b; }

.main { padding: 50px 0; min-height: 70vh; }

h1 { font-size: 36px; font-weight: 700; color: #1d1d1f; margin-bottom: 20px; letter-spacing: -0.5px; }
h2 { font-size: 28px; font-weight: 600; color: #1d1d1f; margin: 35px 0 18px; letter-spacing: -0.3px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; margin: 28px 0; }
.card { background: #fff; border-radius: 20px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); overflow: hidden; }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.card-body { padding: 24px; text-align: center; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: #1d1d1f; }
.card p { color: #86868b; font-size: 14px; margin-bottom: 16px; }
.card .btn { display: inline-block; background: #0071e3; color: #fff; padding: 12px 28px; border-radius: 20px; font-weight: 600; font-size: 14px; }
.card .btn:hover { background: #0077ed; box-shadow: 0 4px 16px rgba(0,113,227,0.3); }

.game-card .card-icon { width: 100%; height: 140px; background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%); display: flex; align-items: center; justify-content: center; font-size: 52px; }

.maze-container { background: #fff; border-radius: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.08); padding: 30px; margin: 20px auto; max-width: 600px; }
.maze-canvas { border-radius: 16px; overflow: hidden; box-shadow: inset 0 2px 8px rgba(0,0,0,0.08); }
.maze-controls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.maze-controls button { padding: 14px 28px; border: none; background: #0071e3; color: #fff; border-radius: 20px; cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.25s; }
.maze-controls button:hover { background: #0077ed; transform: scale(1.02); }
.maze-controls button.secondary { background: #f5f5f7; color: #1d1d1f; }
.maze-controls button.secondary:hover { background: #e8e8ed; }

.maze-stats { display: flex; justify-content: center; gap: 30px; margin: 15px 0; color: #86868b; font-size: 14px; }
.maze-stats span { font-weight: 600; color: #1d1d1f; }

.article-page { background: #fff; border-radius: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.06); padding: 40px; max-width: 850px; margin: 0 auto; }
.article-page h1 { font-size: 34px; color: #1d1d1f; margin-bottom: 12px; }
.article-page .meta { color: #86868b; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid #f5f5f7; font-size: 14px; }
.article-page .content { font-size: 18px; line-height: 1.8; color: #424245; }
.article-page .content h2 { color: #1d1d1f; font-size: 24px; margin-top: 32px; }

footer { background: #f5f5f7; color: #86868b; padding: 35px 0; text-align: center; margin-top: 60px; border-top: 1px solid rgba(0,0,0,0.05); }
footer a { color: #0071e3; margin: 0 12px; }
footer a:hover { color: #1557b0; }

.back-link { display: inline-block; margin-bottom: 20px; color: #86868b; }
.back-link:hover { color: #0071e3; }

.btn { display: inline-block; background: #0071e3; color: #fff; padding: 14px 32px; border-radius: 20px; font-weight: 600; margin: 10px 6px; transition: all 0.25s; }
.btn:hover { background: #0077ed; box-shadow: 0 4px 20px rgba(0,113,227,0.3); }
.btn-secondary { background: #f5f5f7; color: #1d1d1f; }
.btn-secondary:hover { background: #e8e8ed; }

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }

@media (max-width: 600px) {
.maze-container { padding: 15px; margin: 10px; }
.card-body { padding: 18px; }
.article-page { padding: 24px; margin: 10px; }
}
