@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    background: #0f1218;
    color: #e8ebf2;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
}

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 340px;
    overflow: hidden;
    background: #1b2030;
}

.hero-bg {
    position: absolute;
    inset: -20px;
    background-color: #1b2030;
    background-image: linear-gradient(135deg, #2b3550, #141821);
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 18, 24, 0) 40%, #0f1218 100%);
}

.logo {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 1;
    color: #e8ebf2;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.85;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

h1 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(56px, 14vw, 110px);
    line-height: 1;
    letter-spacing: 4px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.hero-title {
    margin: 10px 0 0;
    color: #cfd6e6;
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 600;
}

.content {
    display: grid;
    gap: 14px;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.card {
    padding: 18px 20px;
    border: 1px solid #262c3a;
    border-radius: 16px;
    background: #171b24;
}

.card h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.card p {
    margin: 0;
}

.card ul,
.card ol {
    margin: 0;
    padding-left: 20px;
}

.card li {
    margin: 4px 0;
}

.level-high {
    border-color: #7a3b2e;
    background: #24171a;
}

.level-high h2 {
    color: #ff8a65;
}

.level-medium {
    border-color: #7a6a2e;
    background: #23201a;
}

.level-medium h2 {
    color: #ffd166;
}

.level-low {
    border-color: #2e6a4a;
    background: #17221d;
}

.level-low h2 {
    color: #7ddca5;
}

.footer {
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 16px 40px;
    color: #8a93a8;
    font-size: 13px;
}

.footer a {
    color: #aab4cc;
}

.home-hero {
    min-height: 300px;
}

.home-hero h1 {
    font-family: 'Russo One', 'Orbitron', sans-serif;
    font-size: clamp(38px, 9vw, 68px);
    font-weight: 400;
    letter-spacing: 2px;
}

.footer-credit {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.8;
}

.search {
    width: 100%;
    margin-top: 20px;
    padding: 16px 18px;
    border: 2px solid #2f3647;
    border-radius: 14px;
    background: rgba(15, 18, 24, 0.85);
    color: #e8ebf2;
    font: 600 18px 'Inter', system-ui, sans-serif;
    outline: none;
}

.search:focus {
    border-color: #ffd166;
}

.code-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.code-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    border: 1px solid #262c3a;
    border-radius: 14px;
    background: #171b24;
    color: #e8ebf2;
    text-decoration: none;
}

.code-item:hover {
    border-color: #ffd166;
}

.code-item:active {
    border-color: #ffd166;
    background: #1d2230;
    transform: scale(0.98);
}

.code-item {
    transition: transform 0.1s, background 0.1s, border-color 0.15s;
}

.code-item b {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
}

.code-item span {
    color: #aab4cc;
    font-size: 14px;
}

.code-item.hidden {
    display: none;
}

.empty {
    color: #8a93a8;
}
