* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0c10;
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    color: #e6edf3;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    background: #0d1117;
    border-bottom: 1px solid #21262d;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(13, 17, 23, 0.95);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.9;
}

.logo-icon {
    font-size: 1.4rem;
    font-weight: 700;
    color: #79c0ff;
}

.logo-text {
    background: linear-gradient(135deg, #e6edf3, #79c0ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 2px;
    background: #e6edf3;
    transition: 0.2s;
}

.nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    padding-bottom: 0.25rem;
}

.nav-link:hover {
    color: #79c0ff;
}

.nav-link.active {
    color: #f0f6fc;
    border-bottom: 2px solid #79c0ff;
}

.site-main {
    flex: 1;
    padding: 2rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #e6edf3, #79c0ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #8b949e;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: #79c0ff;
}

.feature-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #79c0ff;
}

.feature-card p {
    font-size: 0.85rem;
    color: #c9d1d9;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.feature-link {
    color: #79c0ff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.feature-link:hover {
    text-decoration: underline;
}

.about {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 1.5rem;
}

.about h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #79c0ff;
}

.about p {
    font-size: 0.85rem;
    color: #c9d1d9;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.tool-section {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #21262d;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.section-header p {
    font-size: 0.85rem;
    color: #7d8590;
    margin-top: 0.3rem;
}

.image-placeholder {
    background: #0a0c10;
    border: 2px dashed #30363d;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.8rem;
    text-align: center;
    transition: border-color 0.2s;
}

.image-placeholder:hover {
    border-color: #79c0ff;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.placeholder-content p {
    color: #8b949e;
    font-size: 0.85rem;
}

.placeholder-content small {
    color: #6e7681;
    font-size: 0.7rem;
}

.image-placeholder img {
    max-width: 100%;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.inputs-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.throw-card {
    background: #0a0c10;
    border-radius: 10px;
    padding: 1.2rem;
    border: 1px solid #30363d;
}

.throw-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #7d8590;
    margin-bottom: 1rem;
}

.input-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    min-width: 80px;
}

.input-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: #8b949e;
    margin-bottom: 0.25rem;
    font-family: monospace;
}

.input-group input {
    width: 100%;
    background: #010409;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.6rem 0.7rem;
    font-size: 0.85rem;
    color: #e6edf3;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.1s;
}

.input-group input:focus {
    outline: none;
    border-color: #388bfd;
    box-shadow: 0 0 0 2px rgba(56,139,253,0.2);
}

.calc-btn {
    width: 100%;
    background: #238636;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 1.5rem;
    font-family: inherit;
}

.calc-btn:hover {
    background: #2ea043;
}

.calc-btn.secondary {
    background: #1f6feb;
}

.calc-btn.secondary:hover {
    background: #388bfd;
}

.result-block {
    background: #0a0c10;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #30363d;
}

.result-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.result-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #7d8590;
    letter-spacing: 1px;
}

.result-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 500;
    color: #f0f6fc;
    letter-spacing: 0.5px;
}

.accuracy-hint {
    font-size: 0.75rem;
    padding: 0.4rem 0;
    border-top: 1px solid #21262d;
    font-family: monospace;
}

.accuracy-hint.low {
    color: #f85149;
}

.accuracy-hint.medium {
    color: #d29922;
}

.accuracy-hint.high {
    color: #3fb950;
}

.info-message {
    font-size: 0.7rem;
    color: #7d8590;
    margin-top: 0.5rem;
}

.converter-box {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.instructions-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.instruction-block {
    background: #0a0c10;
    border-radius: 10px;
    padding: 1.2rem;
    border-left: 3px solid #238636;
}

.instruction-block h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #79c0ff;
}

.instruction-block ol, 
.instruction-block ul {
    padding-left: 1.5rem;
}

.instruction-block li {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: #c9d1d9;
}

.site-footer {
    background: #0d1117;
    border-top: 1px solid #21262d;
    padding: 1.2rem 0;
    margin-top: 1rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.7rem;
    color: #6e7681;
}

.footer-tip {
    font-family: monospace;
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0d1117;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid #21262d;
        gap: 1rem;
    }
    
    .nav.open {
        display: flex;
    }
    
    .inputs-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .header-inner {
        position: relative;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .result-value {
        font-size: 1rem;
    }
    
    .two-cols {
        grid-template-columns: 1fr;
    }
    
    .tool-section {
        padding: 1.2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

html {
    scroll-behavior: smooth;
}


.profession-game {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.game-column h3 {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: #79c0ff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #21262d;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.8rem;
}

.game-item {
    background: #0a0c10;
    border: 2px solid #30363d;
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.game-item:hover {
    border-color: #79c0ff;
    transform: translateY(-2px);
}

.game-item.selected {
    border-color: #238636;
    background: #1a2a1a;
    box-shadow: 0 0 0 2px #23863640;
}

.game-item.matched {
    border-color: #3fb950;
    background: #1a2a1a;
    opacity: 0.8;
}

.item-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #0d1117;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    border: 1px solid #21262d;
}

.item-img-placeholder p {
    font-size: 0.7rem;
    color: #6e7681;
    text-align: center;
    padding: 0.5rem;
}

.item-img-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.item-name {
    font-size: 0.7rem;
    font-weight: 500;
    color: #c9d1d9;
}

.game-status {
    background: #0a0c10;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid #30363d;
    margin-bottom: 1rem;
}

.game-status p {
    font-size: 0.85rem;
    color: #8b949e;
}

.game-status .success {
    color: #3fb950;
}

.image-note {
    background: #0d1117;
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
    border: 1px dashed #30363d;
}

.image-note p {
    font-size: 0.7rem;
    color: #6e7681;
}

.image-note small {
    font-size: 0.6rem;
    color: #4a5568;
}

@media (max-width: 768px) {
    .profession-game {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}