:root {
    --bg-color: #0b1120; /* Deep dark blue background to match image */
    --card-bg: #151e32;
    --text-primary: #FFFFFF;
    --text-secondary: #cbd5e1;
    --accent-color: #3b82f6;
    --border-color: #334155;
    
    /* Level Colors */
    --lvl-1: #4ade80; /* Green */
    --lvl-2: #facc15; /* Yellow */
    --lvl-3: #f97316; /* Orange */
    --lvl-4: #000000; /* Black */
    --lvl-5: #ef4444; /* Red */
    
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}
html {
    background-color: var(--bg-color);
    width: 100%;
    height: 100%;
}
img {
    max-width: 100%;
    pointer-events: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 40px;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: none;
    border-right: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    position: relative;
}

.app-header {
    background-color: var(--card-bg);
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.app-header h1 {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 2px;
}

.app-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px;
    padding-bottom: calc(80px + var(--safe-area-bottom));
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.app-content::-webkit-scrollbar {
    display: none;
}

.card {
    display: none;
    animation: fadeIn 0.2s ease-out forwards;
}

.card.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    text-transform: uppercase;
}

/* Utilities */
.text-center { text-align: center; }
.text-red { color: #ef4444; }
.text-yellow { color: #facc15; }
.text-green { color: #4ade80; }
.text-blue { color: #60a5fa; }
.bg-red { background-color: #ef4444; color: white; }
.bg-blue { background-color: #3b82f6; color: white; }
.bg-none { background-color: transparent; }
.underline { text-decoration: underline; }
.mt-4 { margin-top: 16px; }

/* Levels - Executive Corporate Look */
.level-box {
    border-radius: 4px;
    margin-bottom: 16px;
    padding: 16px;
    background-color: #151e32;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.level-1 { border-left: 6px solid #22c55e; }
.level-2 { border-left: 6px solid #eab308; }
.level-3 { border-left: 6px solid #f97316; }
.level-4 { border-left: 6px solid #94a3b8; }
.level-5 { border-left: 6px solid #ef4444; }

.level-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.level-header h3 { 
    font-size: 36px; 
    font-weight: 700; 
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f1f5f9;
}

.level-num {
    background-color: rgba(255,255,255,0.1);
    width: 64px;
    height: 64px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    margin-right: 20px;
}

.level-1 .level-num { color: #22c55e; }
.level-2 .level-num { color: #eab308; }
.level-3 .level-num { color: #f97316; }
.level-4 .level-num { color: #94a3b8; }
.level-5 .level-num { color: #ef4444; }

.level-list {
    list-style: none;
    font-size: 32px;
    font-weight: 500;
    color: #cbd5e1;
}

.level-list li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.level-image-container {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.level-image {
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.15);
}

.acronym {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 2px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin-right: 18px;
    flex-shrink: 0;
    margin-top: 0px;
}

/* OWLS */
.owls-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.owl-col {
    background-color: var(--card-bg);
    border: 2px solid white;
    border-radius: 12px;
    text-align: center;
    padding: 12px;
}

.owl-letter {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: -5px;
}

.owl-word {
    font-size: 36px;
    margin-bottom: 12px;
}

.owl-box {
    background-color: #2563eb; /* Blue bg for lists */
    border-radius: 8px;
    padding: 8px;
    text-align: left;
}

.owl-sub {
    font-weight: bold;
    font-size: 30px;
    text-align: center;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 6px;
}

.owl-box ul {
    list-style: none;
    font-size: 30px;
    padding-left: 6px;
}

.owl-box li::before {
    content: "•";
    margin-right: 4px;
}

.owls-actions {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 24px;
}

.owl-action {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.action-letter {
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
}

.action-letter h2 {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 4px;
}

.action-letter span {
    display: block;
    font-size: 18px;
    font-weight: bold;
}

.action-text {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.4;
}

/* FRAMES */
.frame-section { margin-bottom: 20px; }

.frame-banner {
    padding: 16px 20px;
    text-align: center;
    font-weight: bold;
    font-size: 32px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.frame-item { margin-bottom: 32px; }

.frame-head {
    border: 2px solid;
    padding: 10px 16px;
    margin-bottom: 12px;
    font-size: 32px;
}
.border-red { border-color: #ef4444; }
.border-green { border-color: #4ade80; }

.frame-script {
    font-size: 34px;
    font-weight: bold;
    background-color: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 8px;
}

.frame-desc {
    font-size: 32px;
    margin-bottom: 16px;
}

.tsf-list {
    list-style: none;
    font-size: 32px;
}
.tsf-list li { margin-bottom: 6px; }

.border-blue-box {
    border: 2px solid #3b82f6;
    padding: 12px;
}

/* INFO */
.info-container {
    padding: 40px 20px;
}
.motto {
    font-style: italic;
    font-size: 18px;
    font-weight: bold;
}
.footer-note {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 20px;
}


/* NAV - Executive Look */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #0b1120;
    border-top: 1px solid #233863;
    display: flex;
    justify-content: space-around;
    padding: 0;
    z-index: 100;
    height: calc(56px + var(--safe-area-bottom));
}

.nav-btn {
    background: transparent;
    border: none;
    border-top: 4px solid transparent;
    color: var(--text-secondary);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s, border-top-color 0.2s, background-color 0.2s;
    padding-bottom: var(--safe-area-bottom);
}

.nav-btn:hover {
    background-color: rgba(255,255,255,0.02);
}

.nav-btn.active {
    color: #fff;
    border-top: 3px solid #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}
