:root {
    --bg: #0b0b10;
    --card-bg: #ffffff;
    --card-soft: rgba(255, 255, 255, 0.92);
    --accent: #00bcd4;
    --accent-soft: rgba(0, 188, 212, 0.12);
    --text: #111111;
    --muted: #666a72;
    --radius-lg: 18px;
    --radius-xl: 26px;
  }
  
  /* FONTIT */
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
    height: 100%;
  }
  
  body {
    background: #000;
    font-family: "Nunito", sans-serif;
  }
  
  /* Otsikot boldilla */
  
  h1,
  h2,
  h3,
  .news-card-title {
    font-weight: 700;
  }
  
  /* Leipäteksti regularina */
  
  p,
  label,
  input,
  .article p,
  .article-lead,
  .login-subtitle,
  .emergency-list,
  .emergency-text {
    font-weight: 400;
  }
  
  /* APP-SHELL */
  
  .app-shell {
    position: relative;
    max-width: 430px;
    margin: 0 auto;
    height: 100vh;
    background: #000;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  /* HEADER – vain kielivalinta */
  
  .app-header {
    position: relative;
    z-index: 2;
    padding: 0.7rem 1rem 0.3rem;
    display: flex;
    justify-content: flex-end;
  }
  
  .lang-switch {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    font-size: 0.7rem;
  }
  
  .lang-switch select {
    border-radius: 999px;
    border: none;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
  }
  
  /* VIEWS */
  
  .view {
    position: absolute;
    inset: 0;
    top: 0;
    padding-top: 1.5rem; /* tila headerille */
    display: none;
    color: #fff;
  }
  
  .view--active {
    display: block;
  }
  
  .view-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
  }
  
  .view-bg--login {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.1), #000000),
      url("images/login-bg.jpg") center/cover no-repeat;
  }
  
  .view-bg--news {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.2), #000000),
      url("images/news-bg.jpg") center/cover no-repeat;
  }
  
  /* fallback jos ei kuvia */
  .view-bg--login,
  .view-bg--news {
    background-color: #262a35;
  }
  
  /* content wrapperit */
  
  .view-content {
    position: relative;
    z-index: 1;
    padding: 1rem 1.1rem 5rem;
  }
  
  /* LOGIN-KESKITYS: täysin keskellä ruutua */
  
  .view-content--centered {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* horisontaalinen keskitys */
    padding: 0 1.5rem;
    text-align: center;
  }
  
  .view-content--top {
    margin-top: 2.3rem;
  }
  
  .view-content--article {
    margin-top: 1.2rem;
    background: #fdfdfd;
    color: var(--text);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 1.2rem 1.1rem 5rem;
  }
  
  /* LOGIN */
  
  #view-login {
    color: #fff;
  }
  
  #login-heading {
    font-size: 2rem;
    margin: 0 0 0.35rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  }
  
  .login-subtitle {
    margin: 0 0 1.3rem;
    max-width: 260px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
  }
  
  .card {
    background: var(--card-soft);
    border-radius: var(--radius-xl);
    padding: 1rem 1.1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  }
  
  .card--login {
    max-width: 320px;
    margin: 0 auto;
  }
  
  label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
  }
  
  label span {
    display: block;
    margin-bottom: 0.2rem;
  }
  
  input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #d2d7e0;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .primary-button {
    margin-top: 0.4rem;
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 700;
    background: #111111;
    color: #fff;
    cursor: pointer;
  }
  
  .primary-button:hover {
    filter: brightness(1.05);
  }
  
  .link-button {
    margin-top: 0.3rem;
    width: 100%;
    border: none;
    background: transparent;
    color: #1a73e8;
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
  }
  
  /* NEWS LIST */
  
  .view--news .view-title {
    font-size: 2.3rem;
    margin: 0 0 1rem;
  }
  
  .news-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }
  
  .news-card {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    border-radius: 18px;
    padding: 0.8rem 0.9rem;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  }
  
  .news-card-title {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }
  
  .news-card-button {
    margin-top: 0.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
  }
  
  /* ARTICLE (uutisdetalji & emergency-teksti) */
  
  .back-link {
    border: none;
    background: none;
    padding: 0;
    margin-bottom: 0.7rem;
    font-size: 0.85rem;
    color: #1a73e8;
    cursor: pointer;
  }
  
  .article {
    max-width: 380px;
  }
  
  /* Uutisen otsikon väri */
  .article h1 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: #ff1c91;
  }
  
  /* Ingressin väri */
  .article-lead {
    font-size: 0.95rem;
    font-weight: 700;
    color: #04a9c7;
    margin-bottom: 0.6rem;
  }
  
  .article-image {
    width: 100%;
    border-radius: 12px;
    margin: 0.9rem 0;
    object-fit: cover;
    max-height: 210px;
  }
  
  .article p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #343a40;
  }
  
  /* EMERGENCY */
  
  #view-emergency {
    background: #fdfdfd;
    color: var(--text);
  }
  
  .emergency-hero {
    height: 210px;
    overflow: hidden;
  }
  
  .emergency-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .emergency-contacts {
    margin: 0.4rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }
  
  .emergency-contact {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  
  .emergency-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: #111;
    background-image: url("assets/icons/icon-home.png"); /* voit vaihtaa halutuksi symboliksi */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
  }
  
  .emergency-text {
    font-size: 0.9rem;
  }
  
  .emergency-number {
    font-weight: 700;
  }
  
  .emergency-list {
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: #343a40;
  }
  
  .emergency-list li + li {
    margin-top: 0.35rem;
  }
  
  /* BOTTOM BAR – korkeampi + omat ikonit */
  
  .bottom-bar {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 360px;
  
    background: #18181c;
    border-radius: 999px;
  
    /* kasvatettu korkeus */
    padding: 0.7rem 1rem;
  
    display: flex;
    align-items: center;
    justify-content: space-between;
  
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
    z-index: 3;
  }
  
  .bottom-icon {
    width: 28px;
    height: 28px;
    border: none;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    cursor: pointer;
    padding: 0;
  }
  
  /* footer-ikonien kuvatiedostot */
  
  #btn-share {
    background-image: url("assets/icons/icon-share.png");
  }
  
  #btn-download {
    background-image: url("assets/icons/icon-download.png");
  }
  
  #btn-notes {
    background-image: url("assets/icons/icon-notes.png");
  }
  
  #btn-home {
    background-image: url("assets/icons/icon-home.png");
  }
  
  .bottom-center {
    display: flex;
    gap: 0.3rem;
  }
  
  .dot-button {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 999px;
    background-color: transparent;
    background-image: url("assets/icons/icon-dot.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    cursor: pointer;
    opacity: 0.8;
  }
  
  .dot-button--active {
    background-image: url("assets/icons/icon-dot-active.png");
    opacity: 1;
  }
  
  .bottom-right {
    display: flex;
    gap: 0.2rem;
  }
  
  /* RESPONSIVE */
  
  @media (max-height: 720px) {
    .view-content--centered {
      justify-content: flex-start;
      padding-top: 3.5rem;
    }
  }  