*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'Huninn';
  src: url('/fonts/Huninn-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* @font-face {
font-family: 'Comfortaa';
src: url('/fonts/Comfortaa-VariableFont_wght.ttf') format('truetype');
font-weight: normal;
font-style: normal;
} */

body{
  font: 20px/1.5 "Huninn", -apple-system,system-ui,sans-serif;
  background:#1E1E24;
  color:#e0e0e0;
  display: grid;
  align-items: center;
  align-content: center;
  justify-content: center;
  padding: 8px;
  min-height: 100vh;
  word-wrap: anywhere;
}

.box{
  background:#2A2A32;
  padding: 8px;
  border-radius: 8px;
  width: 100%;
  max-width: 490px;
  min-width: 390px;
  box-shadow: 0 4px 4px #00000033;
}

.info-box{
  background:#413e28;
  padding: 1px;
  border-radius: 8px;
  max-width: 490px;
  width: 100%;
  margin-bottom: 20px;
}

.info-box p{
  font-size: 1rem !important;
  text-align: center !important;
  margin: 0;
}

h1{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  text-decoration: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: clamp(1rem, 10vw, 3rem);
  letter-spacing: -.01em;
  position: relative;
  margin-top: 10px;
  margin-bottom: 12px;
}

h2 {
  color:#e6e6e6;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  text-align: center;
  font-size: clamp(0.7rem, 6vw, 2.2rem);
  font-weight: bold;
  width: 100%;
}

h3{
  color:#e6e6e6;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  width: 100%;
}

p{
  color:#d5d4d3;
  font-size: 0.975rem;
  line-height: 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

img{
  border-radius: 6px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
  user-select: none;
}

hr{
  display: block;
  height: 2px;
  border: 0;
  border-top: 2px solid #3A3A44;
  margin: 1em 0;
  padding: 0;
}

ul{
padding-left: 2rem;
}

.nav{
  background:#2a2a32;
  padding: 8px;
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 4px 4px #00000033;
  margin-bottom: 1rem;
  justify-content: space-between;
  display: flex;
}

.nav-icon{
  width: 30px !important;
  height: 30px !important;
}

a:link ,a:visited{
  text-decoration: none;
  color:#93a1df;
  text-align: center;
}

.link{
color: #8f98be !important;
}

.btn{
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  width: 100%;
  padding:  15px 20px;
  text-decoration: none;
  border-radius: 16px;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  color: #d3d3d3 !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.28),0 0 0 1px rgba(255,255,255,.10) inset;
}

.img-btn{
  gap: 25%;
  justify-content: normal !important;
  font-weight: 700;
  font-size: 15px;
}

.btn-bg{
  background: rgba(255,255,255,.075);
}

.btns{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-wrap{
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.app-logo{
  width: 42px;
  height: 42px;
  margin-right: 10px;
}

.row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #3A3A44;
}

.container{
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
  justify-content: center;
  align-items: stretch;
}

.copy-text{
  position:relative;
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.19);
  padding: 12px 76px 12px 14px;
  border-radius:13px;
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:13px;
  word-break:break-all;
  color: rgba(255,255,255,.72);
  text-align:left;
  line-height:1.55;
  margin-bottom:0.5rem;
}

.copy-actions{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}

.copy-btn, .qr-btn{
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn svg, .qr-btn svg{
  width: 16px;
  height:16px;
  fill: rgba(255, 255, 255, .6);
  transition: fill 0.2s;
}

.copy-btn:hover svg, .qr-btn:hover svg{
  fill: rgba(255, 255, 255, .9);
}

.qr-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background:rgba(0,0,0,0.6);
  z-index: 9999;
}

.qr-card{
  background:#0f0f11;
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.qr-card canvas{
  width: min(70vw, 400px);
  height: min(70vw, 400px);
  background:#fff;
  border-radius: 6px;
}

.qr-close{
  background: transparent;
  border: 0;
  color:#fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  width: 100%;
}

.goal-title{
  color: #e6e6e6;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}

.progressbar-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Nunito', system-ui, sans-serif;
}

.progressbar-wrap p:first-of-type{
  order: 1;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #9c9489;
  white-space: nowrap;
}

.progressbar-overlay{
  order: 2;
  flex: 1;
  position: relative;
  height: 18px;
  background-color: #18181d;
  border: 1px solid #3f3f47;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.progressbar-wrap p:last-of-type{
  order: 3;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #9c9489;
  white-space: nowrap;
}

.progressbar{
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: #2e83c9;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.progressbar-text{
  position: relative;
  z-index: 2;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 3px rgba(0, 0, 0, 0.6);
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.error-box{
  background: #3a2a2a;
  color: #e0a0a0;
  padding: 8px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

p.support{
  font-weight: normal;
  font-size: 0.75rem !important;
  color:#999;
  line-height: normal;
  margin-bottom: 0;
  padding-top: 0.5rem;
  text-align: center !important;
}

a.support{
  color:#999 !important;
}

.border-top{
  border-top: 1px solid #3A3A44;
}

.no-padding-top{
padding-top: 0 !important
}

.text-center{
  text-align: center !important;
}

.flex{
  display: flex !important;
}

@media(max-height:430px){
  .qr-btn{
      display: none;
  }
  .copy-text{
      padding-right: 38px;
  }
}

@media(max-width:430px){
  .qr-btn{
      display: none;
  }
  .copy-text{
      padding-right: 38px;
  }
  .box{
      min-width: 0;
  }
}
