* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    min-height: 100dvh;
    background: linear-gradient(145deg, #f7f0e6 0%, #e3d6c8 100%);
    display: flex; justify-content: center; align-items: center;
    position: relative; overflow: hidden;
}
.background-lines { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: transparent; }
.line { position: absolute; border-radius: 50%; animation: floatLine 6s infinite alternate ease-in-out; }
.line:nth-child(1) { width: 12px; height: 90vh; left: 5%; top: -20%; animation-duration: 5s; background: rgba(120, 90, 70, 0.25); }
.line:nth-child(2) { width: 8px; height: 70vh; right: 10%; bottom: -30%; animation-duration: 7s; animation-delay: 1s; background: rgba(140, 110, 90, 0.2); transform: rotate(45deg); }
.line:nth-child(3) { width: 6px; height: 110vh; left: 25%; top: -60%; animation-duration: 4.5s; animation-delay: 2s; background: rgba(160, 130, 110, 0.2); transform: rotate(-30deg); }
.line:nth-child(4) { width: 15px; height: 80vh; right: 5%; top: 15%; animation-duration: 8s; animation-delay: 0.5s; background: rgba(100, 80, 60, 0.15); transform: rotate(60deg); }
.line:nth-child(5) { width: 10px; height: 100vh; left: 55%; bottom: -10%; animation-duration: 6s; animation-delay: 3s; background: rgba(130, 105, 85, 0.2); }
.line:nth-child(6) { width: 5px; height: 130vh; left: 40%; top: -50%; animation-duration: 4s; animation-delay: 1.5s; background: rgba(150, 125, 105, 0.15); transform: rotate(20deg); }
.line:nth-child(7) { width: 20px; height: 60vh; right: 25%; top: 80%; animation-duration: 9s; animation-delay: 0.8s; background: rgba(180, 150, 130, 0.15); transform: rotate(-15deg); }
.line:nth-child(8) { width: 4px; height: 150vh; left: 75%; top: -20%; animation-duration: 5.5s; animation-delay: 2.5s; background: rgba(90, 70, 50, 0.2); transform: rotate(80deg); }
@keyframes floatLine { 0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.2; } 100% { transform: translate(120px, -120px) rotate(35deg) scale(1.6); opacity: 0.7; } }

.card {
    background: transparent; backdrop-filter: none; box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 48px;
    padding: 40px 32px 32px; max-width: 750px; width: 100%;
    position: relative; z-index: 2; margin: 20px;
}
.header { text-align: center; margin-bottom: 30px; }
.header h1 { font-size: clamp(1.6rem, 6vw, 2.8rem); font-weight: 700; color: #2d1f18; line-height: 1.2; text-shadow: 0 2px 30px rgba(255, 255, 255, 0.9); }
.header .sub { font-size: clamp(0.85rem, 2.5vw, 1.2rem); color: #4d3d32; margin-top: 6px; border-top: 2px dashed rgba(80, 60, 50, 0.1); padding-top: 10px; display: inline-block; text-shadow: 0 2px 20px rgba(255, 255, 255, 0.7); }
.header .sub span { background: rgba(255, 255, 255, 0.1); padding: 2px 14px; border-radius: 30px; color: #2d1f18; font-weight: 500; font-size: 0.85em; margin-left: 6px; backdrop-filter: blur(2px); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin: 20px 0 16px; }
.grid-item {
    background: rgba(255, 248, 240, 0.85); backdrop-filter: blur(8px);
    border-radius: 28px; padding: 18px 10px 16px; text-align: center;
    text-decoration: none; color: #2d1f18; transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    opacity: 0; transform: translateY(30px);
}
.grid-item-small { padding: 12px 6px !important; border-radius: 20px !important; height: 100%; }
.grid-item-small .icon { font-size: 1.8rem !important; }
.grid-item-small .label { font-size: 0.9rem !important; }
.grid-item-small .badge { font-size: 0.65rem !important; padding: 2px 10px !important; }
.grid-item.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s, box-shadow 0.3s; }
.grid-item:hover { background: rgba(255, 255, 255, 0.95); box-shadow: 0 12px 28px rgba(100, 80, 70, 0.15); transform: translateY(-6px) scale(1.02); }
.grid-item .icon { font-size: 2.4rem; line-height: 1; transition: transform 0.4s ease; display: inline-block; }
.grid-item:hover .icon { transform: scale(1.15) rotate(6deg); }
.grid-item .label { font-weight: 600; font-size: 0.95rem; color: #3d2e25; text-shadow: 0 1px 4px rgba(255, 255, 255, 0.3); }
.grid-item .badge { font-size: 0.65rem; background: rgba(255, 255, 255, 0.7); padding: 2px 12px; border-radius: 30px; color: #2d1f18; font-weight: 500; white-space: nowrap; backdrop-filter: blur(4px); }
.grid-item:active { transform: scale(0.94); }
.footer-note { text-align: center; margin-top: 28px; font-size: 0.8rem; color: #4a3a2e; border-top: 1px solid rgba(80, 60, 50, 0.05); padding-top: 16px; text-shadow: 0 1px 20px rgba(255, 255, 255, 0.6); }

@media (max-width: 650px) {
    body { padding: 0; align-items: stretch; overflow-y: auto; }
    .card { border-radius: 0; padding: 16px 12px 20px; max-width: 100%; margin: 0; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-start; }
    .grid { display: flex; flex-direction: column; gap: 32px; flex: 1; margin: 8px 0; }
    .grid-group { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; flex: 1; }
    .grid-group-bottom { flex: 0; margin-top: 6px; }
    .grid-item { padding: 28px 10px; border-radius: 24px; height: 100%; }
    .grid-item .icon { font-size: 3.2rem; }
    .grid-item .label { font-size: 1.1rem; }
    .grid-item .badge { font-size: 0.7rem; padding: 4px 12px; }
}
@media (max-width: 380px) {
    .grid-item .icon { font-size: 2.4rem; }
    .grid-item .label { font-size: 0.95rem; }
    .grid-item { padding: 20px 6px; }
    .grid-item-small .icon { font-size: 1.4rem !important; }
    .grid-item-small .label { font-size: 0.8rem !important; }
}