
  :root{ --bg:#ffffff; --card:#fff; --muted:#6b7280; --accent:#2563eb;
    --success:#d1fae5; --success-text:#064e3b; --error:#ffe6e6; --error-text:#7f1d1d;
    --current-bg:#f2f4f6; --text:#0f172a; --rounded:12px;
    font-family:"Noto Sans Devanagari",system-ui,sans-serif;
  }
  *{box-sizing:border-box}
  body{margin:0;
    min-height:100vh;
 
    color:var(--text);
    padding:0px;
    display:flex;
    justify-content:center;
    align-items:flex-start;
  
   background: 
    repeating-linear-gradient(
   45deg,
   transparent 0,
   transparent 5px,
   rgba(255, 255, 255, 0.295) 9px,
   rgba(255, 255, 255, 0.212) 10px
  ),
  
  repeating-linear-gradient(
   -45deg,
   transparent 0,
   transparent 0px,
   rgba(255, 255, 255, 0.397) 5px,
   rgba(255, 255, 255, 0.39) 10px
  ),
  
  linear-gradient(-45deg, #96c1f0, #b2c7f3, #aacaec, #faeded);

  
  }
  .container{width:100%;max-width:760px;margin-top: 30px;margin-bottom: 0px;}
  .card{background:var(--card);border-radius:var(--rounded);padding:16px;border:1px solid #eef2f7;margin-bottom:14px;box-shadow:0 6px 20px rgba(12,15,30,0.04)}
  h2{margin:0 0 8px 0}
  .header-row{display:flex;justify-content:space-between;align-items:center}
  .header-right{display:flex;gap:8px;align-items:center}
   
  .paragraph{
    background:#f6f7f9;
    padding:5px;
    border-radius:10px;
    font-size:26px;
    line-height:44px;
    height:auto;
    overflow:hidden;
    user-select:none;
    position:relative;
    text-align: justify;
    text-justify: inter-word;
    transition: all .18s ease;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  }



.paraListContainer{
  width:100%;
  max-height:440px;
  overflow:auto;

  padding:4px;
  border-radius:8px;
  border:1px solid #eef2f7;
  background:#fff;
}



.paraItem{
  display:flex;
  flex-direction:column;    
  align-items:flex-start;   
  gap:6px;                  

  padding:6px 8px;          
  margin:0;                 
  border:none;
  border-bottom:1px solid #eef2f7; 
  background:transparent;
  border-radius:0;
  cursor:pointer;
  min-height:unset;        
}


.paraItem > div:first-child{
  font-weight:600;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  width:100%;
  color: #3275ce;
}


.sampleWords{
  width:100%;
  margin-top:0;
  display:flex;
  gap:6px;
  flex-wrap:wrap;       
  align-items:center;
  justify-content:flex-start;
}


.sampleWord{
  padding:2px 6px;
  border-radius:6px;
  background:transparent;
  border:0;
  font-size:13px;
  color:var(--muted);
  cursor:default;
  white-space:nowrap;
}



.paraItem:hover{
  background:#fbfdff;
}



  .word{display:inline;padding:0px 6px;margin-right:3px;border-radius:6px;transition:background .08s,color .08s; vertical-align:top; color: #5e636b;}
  .word.current{background:rgba(235, 227, 227, 0.747);color:#000000}
  .word.error{background:rgba(255, 2, 2, 0.945);color:white}
  .word.correct{color:var(--success);color:var(--success-text);}

.word.wrong {
    color: #b91c1c; 
       background: transparent;
}
  .output{background:#fff;padding:12px;border-radius:10px;border:1px solid #eef2f7;min-height:65px;font-size:24px;white-space:pre-wrap;margin-top:10px;position:relative;transition:all .18s ease;font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;}
  .finish-go-wrap{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
  .controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
  button{background:#f3f4f6;border:1px solid #e6e9ef;padding:8px 12px;border-radius:8px;cursor:pointer;color:var(--text)}
  button.primary{background:linear-gradient(90deg,var(--accent),#3b82f6);border:none;color:white}
  .results{display:flex;flex-direction:column;gap:10px;align-items:center}
  .resultRow{width:100%;display:flex;justify-content:center;gap:18px;flex-wrap:wrap}
  .metric{min-width:160px;background:#fafafb;border:1px solid #eef2f7;padding:10px;border-radius:8px;text-align:center}
  .big{font-size:20px;font-weight:700}
  .small{font-size:13px;color:var(--muted)}
  #vkeyboard{display:none !important}
 
input.hiddenMobile {
  position: fixed;
  top: -1000px; /* स्क्रीन से बहुत दूर ऊपर भेज दिया */
  left: -1000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  border: none;
  pointer-events: none;
  z-index: -100;
}
  @media (max-width:720px){ .grid{grid-template-columns:1fr} }

  .paragraph::-webkit-scrollbar { width: 0px; background: transparent; }
  .paragraph { -ms-overflow-style: none; scrollbar-width: none; }

  .paused .paragraph,
  .paused .output {
    filter: blur(2px) saturate(.92);
    opacity: .85;
    transform: scale(.995);
    transition: all .15s ease;
    user-select: none;
    pointer-events: none;
  }

  .btn-time.paused { background:#fff3cd; border-color:#ffeeba; color:#7a4b00; }
  .btn-time.running { background:#e6f0ff; border-color:#cfe0ff; color:#0b4da3; }

  .header-right .small-btn{padding:6px 10px;font-size:14px;border-radius:8px}

  .resultWordsContainer{
    width:100%;
    max-width:100%;
    max-height:200px;
    overflow:auto;
    border:1px solid #eef2f7;
    border-radius:8px;
    padding:10px;
    background:#ffffff;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }
  .resultWord{
      font-size:15px;
    cursor:default;
    white-space:nowrap;
  }
  .resultWord.correct{ color:#000; background: #fff; border-color:#e6f7ea; font-weight:600; }
  .resultWord.wrong{ color:#b91c1c; background:#fff5f5; border-color:#f8d7da; }


  .pagination{
    display:flex;
    gap:8px;
    justify-content:center;
    align-items:center;
    margin-top:10px;
    flex-wrap:wrap;
  }
  .page-btn{padding:8px 10px;border-radius:8px;border:1px solid #e6e9ef;background:#f8fafc;cursor:pointer}
  .page-btn.active{background:linear-gradient(90deg,var(--accent),#3b82f6);color:white;border:none}
  .page-nav{padding:6px 10px;border-radius:8px;border:1px solid #e6e9ef;background:#fff;cursor:pointer}

  
  .renderControls{
    display:flex;
    gap:0px;
    justify-content:flex-end;
    align-items:center;
    margin-bottom:12px;
    flex-wrap:wrap;
    margin-top: 4px;
  }
  .render-btn{padding:8px 12px;border-radius:0px;border:1px solid #e6e9ef;background:#f8fafc;cursor:pointer;font-weight:500}
  .render-btn.active{background:linear-gradient(90deg,#16a34a,#22c55e);color:white;border:none}
  .render-nav{padding:7px 12px;border-radius:0px;border:1px solid #e6e9ef;background:#fff;cursor:pointer}

  .loading{color:var(--muted);font-style:italic;padding:8px}
  .error-msg{color:#dc2626;padding:8px;border-radius:8px;background:#fee;border:1px solid #fca}



#layoutWindow {
    position: fixed;
    top: 50px;
    right: 20px;
    width: 350px;
    min-width: 200px;
    min-height: 150px;
    background: white;
    border: 2px solid #2563eb;
    border-radius: 8px;
    z-index: 10000;
    display: none; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    resize: both; 
    overflow: hidden;
       flex-direction: column;
}

#layoutHeader {
    padding: 8px 12px;
    background: #2563eb;
    color: white;
    cursor: move; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    user-select: none;
}

#layoutBody {
    flex: 1;
    overflow: auto;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move;
    overflow: hidden;
    position: relative;
    touch-action: none;
}

#layoutBody img {
    transition: transform 0.1s ease-out; 
    transform-origin: center center;
    max-width: 100%;
    height: auto;
    display: block;
}

.layout-btn-group {
    display: flex;
    gap: 8px;
}

.window-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.window-btn:hover {
    background: rgba(255,255,255,0.4);
}


#openLayoutBtn {
    position: fixed;
    bottom: 20px;
    right: 10px;
    z-index: 9999;
    padding: 10px 15px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-weight: bold;
}

.mobile {
  border-bottom: 3.5px solid rgb(71, 252, 0); border-radius: 10px;
}


#closeAppBtn {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 10001; 
    width: 35px;
    height: 35px;
    background: #ef4444; 
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background 0.3s, transform 0.2s;
}

#closeAppBtn:hover {
    background: #dc2626;
    transform: scale(1.1);
}


@media (max-width: 450px) {
    #closeAppBtn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}



#brandLabel {
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 9999;
    padding: 10px 20px;
     background: linear-gradient(90deg, #eb2525, #05010c);
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 0px 0px 50px 0px;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.1);
    pointer-events: none; 
    user-select: none;

    letter-spacing: 1px;
}

@media (max-width: 450px) {
  #brandLabel {
    font-size: 10px;
    padding: 8px 15px;
  }
}



@media (max-width: 450px) {

  #openLayoutBtn {
    font-size: 10px;

  }

  .sampleWords{
font-size: 12px;
gap: 1px;
}

  .render-nav{
    padding:7px 8px;
    border-radius:0px;
    border:1px solid #e6e9ef;
    background:#fff;
    cursor:pointer
  }
  
 h2{
  font-size: 15px;
}

#layoutWindow {
       width: 250px;
    min-width: 180px;
    min-height: 100px;

}

.layout-heading {
  display: none;
}
}


.ad-container-bottom {
    width: 100%;
    max-height: 220px;
    margin-bottom: 0px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    clear: both;
    
}


.full-screen-ad {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}


