   /* background not card*/
   body {
      position: relative;
      margin: 0;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
  background:radial-gradient(circle at top,
    #eff6ff 0%,
    #dbeafe 45%,
    #93c5fd 100%);
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
      color: var(--text);
    }

body > :not(#penrose) {
    position: relative;
    z-index: 1;
}
/* the card which the game sits on*/
    .game {
      position: relative;
      overflow: hidden;
      width: 100%;
      max-width: 640px;
   background:
    radial-gradient(circle at 14% 0%, rgba(255, 213, 79, 0.26), transparent 32%),
    radial-gradient(circle at 92% 14%, rgba(74, 126, 245, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(218, 235, 218, 0.74), rgba(219, 231, 245, 0.62) 54%, rgba(246, 238, 213, 0.56));

backdrop-filter: blur(12px);
      border-radius: 24px;
      padding: 24px 20px 20px;
      box-shadow:
        0 18px 60px rgba(2, 56, 126, 0.736),
        0 0 0 1px rgba(148, 163, 184, 0.08);
          border: 1px solid rgba(7, 4, 10, 0.25);
    } /* this is the shadow of the card*/

    .game::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background:
        linear-gradient(120deg, rgba(255,255,255,0.24), transparent 42%),
        radial-gradient(circle at 50% 100%, rgba(47, 95, 227, 0.08), transparent 44%);
      pointer-events: none;
    }

    .game > * {
      position: relative;
      z-index: 1;
    }

/* this is lives and time position */
    .game-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 20px;
      
    }
/* this changes the card */
    h1 {
      margin: 0;
      font-size: 2.25rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }
    /* this changes the lives and the timer*/
       .lives {
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid rgba(7, 4, 10, 0.25);
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: black;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      backdrop-filter: blur(4px);
      background: linear-gradient( 135deg, #dbe7f5 0%,#d6dff2 50%, #cfd7ee 100%);
    }

    #timer-text {
      position: relative;
      top: 2px;
    }

/* this put the guesses box and the hangman box next to each other*/
    .board {
      display: grid;
      grid-template-columns: 250px 1fr;
      align-items: stretch;
    }

    /* Word display */
    .word-wrapper {
      border-radius: 18px;
      padding: 14px 14px 16px;
      background: linear-gradient( 135deg, #dbe7f5 0%,#d6dff2 50%, #cfd7ee 100%);
      border: 1px solid rgba(7, 4, 10, 0.25);
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-height: 90px;
      justify-content: space-between;
    }
        .word {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      font-size: 1.6rem;
      letter-spacing: 0.1em;
    }

    .letter-box {
      min-width: 22px;
      text-align: center;
      border-bottom: 2px solid rgba(7, 4, 10, 0.25);
      padding-bottom: 4px;
      text-transform: uppercase;
    }
    .letter-box.revealed {
      color: var(--accent);
      text-shadow: 0 0 8px rgba(56, 189, 248, 0.9);
    }

    .status { font-size: 0.85rem; color: var(--muted); }
    .status strong { color: var(--accent); }

    /* Keyboard */
    .keyboard {
      margin-top: 16px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
      gap: 6px;
    }
    .key {
      padding: 6px 0;
      border-radius: 999px;
      border: 1px solid rgba(7, 4, 10, 0.25);
      background: linear-gradient( 135deg, #dbe7f5 0%,#cadafc 50%, #b6c4ef 100%);
      font-size: 0.8rem;
      text-transform: uppercase;
      cursor: pointer;
      color: var(--text);
      transition: transform 0.08s ease-out, box-shadow 0.08s ease-out,
       border-color 0.1s ease-out, background 0.1s ease-out;
      user-select: none;
       
    }

    .key:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 6px 14px rgba(74, 113, 206, 0.8);
      border: 1px solid rgba(7, 4, 10, 0.25);
    }
  .key:active:not(:disabled) { transform: translateY(0); box-shadow: none; }

    .key.correct {
      background: radial-gradient(circle at top, rgba(22, 163, 74, 0.4), #11bd8f);
      border: 1px solid rgba(7, 4, 10, 0.25);
    }

    .key.wrong {
      background: radial-gradient(circle at top, rgba(255, 57, 57, 0.6), #6f9dff);
      border: 1px solid rgba(7, 4, 10, 0.25);
      color: #fecaca;
    }

    .key:disabled { opacity: 0.85; cursor: default; }

    .footer {
      margin-top: 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      font-size: 0.8rem;
      color: var(--muted);
    }
    /* this is the new word button*/ 
    .btn {
      padding: 7px 14px;
      border-radius: 999px;
      border: 1px solid rgba(7, 4, 10, 0.25);
      background: linear-gradient( 135deg, #dbe7f5 0%,#bec8df 50%, #cfd7ee 100%);
      color: var(--text);
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: transform 0.1s ease-out, box-shadow 0.1s ease-out,
      border-color 0.1s ease-out, background 0.1s ease-out;
      white-space: nowrap;
    }

    .btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 22px rgba(67, 103, 187, 0.85);
      border-color: var(--accent);
    }
  .btn:active { transform: translateY(0); box-shadow: none; }

    .message { font-size: 0.9rem; color: var(--muted); }
    .message.win { color: #050e08; }
    .message.lose { color: var(--error); }

    .answer {
      font-weight: 600;
      color: #020408;
      text-transform: uppercase;
    }
#penrose {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}
/* setting button*/ 

.settings-panel {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    margin-bottom: 0;
    border-radius: 18px;
    background: #dbe7f5;
    transition:
        max-height .35s ease,
        padding .35s ease,
        margin .35s ease;
}
.settings-btn.open {
    transform: rotate(90deg);
}
       
.settings-panel.open {
   max-height: 450px;
    padding: 16px;
    margin-bottom: 20px;
background:
    radial-gradient(
        circle at top left,
        rgba(255,255,255,.45),
        transparent 45%
    ),

    linear-gradient(
        135deg,
        #eef8ff,
        #dcecff,
        #d5e2ff
    );
    padding:16px;
    margin-bottom:20px;
    box-shadow:
        0 18px 60px rgba(2,56,126,.736),
        0 0 0 1px rgba(148,163,184,.08);
}


.settings-btn {
  
    position: relative;
    width: 40px;
   height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(7, 4, 10, 0.25);
    transition: transform 0.4s ease, box-shadow 0.2s ease;
   background: linear-gradient(
    135deg,
    rgba(19, 120, 12, 0.15),
    rgba(1, 255, 255, 0.05)
  
    );

    cursor: pointer;
    font-size: 18px;
}
.settings-btn:hover {
    transform: rotate(20deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(67, 103, 187, 0.8);
}
settings-panel label {
  
    display: flex;
    align-items: center;
    gap: 8px;
    color: black;
    font-size: 16px;
}

#head,
#body,
#left-arm,
#right-arm,
#left-leg,
#right-leg {
    opacity: 0;
}
.hangman-svg {
    width: 100%;
    max-width: 220px;
    height: auto;
    border: 1px solid black;
    display: block;
    margin: 0 auto;
}
.settings-panel input[type="number"] {
    width: 70px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.2);
    text-align: center;
    font-size: 18px;
    background: white;
}
.settings-panel label {
    font-family: 'Fredoka', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0;
    
}
.settings-panel h3 {
 font-family: 'Fredoka', serif;
 font-size: 28px;
 font-weight: bold;
 margin-top: 0;
 margin-bottom: 18px;
 text-align: center;
 letter-spacing: 2px;
 position: relative;
  text-align: center;
  margin-bottom: 35px;
}

.switch-row{

    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:16px 0;
}
    
.switch{

    position:relative;
    display:inline-block;
    width:56px;
    height:30px;
}
.switch input{
    opacity:0;
    width:0;
    height:0;
}
.slider{

    position:absolute;
    cursor:pointer;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:#bbb;
    border-radius:30px;
    transition:.3s;
}
.slider::before{

    content:"";
    position:absolute;
    width:22px;
    height:22px;
    left:4px;
    bottom:4px;
    background:white;
    border-radius:50%;
    transition:.3s;
}
    
.switch input:checked + .slider{

    background:#4CAF50;
}
.switch input:checked + .slider::before{

    transform:translateX(26px);
}

.title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: -25px 0 -15px;
}

.line {
    flex: 1;
    height: 3px;
    background: linear-gradient(
        90deg,
        #5b7cfa,
        #63d8ff
    );
}

.divider-flower {
    width: 28px;
    height: 28px;
    display: block;
   
}
.setting-icon {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    vertical-align: middle;
  
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
