html, body { height: 100%; margin: 0; }
body{
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at 50% 40%, #1b2a4a 0%, #05060a 60%, #000 100%);
  color: #eaf6ff;
  -webkit-text-size-adjust: 100%;
}
canvas{ display:block; }

.topbar{
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 10;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.actions{
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
}

.brand{ grid-column: 2; text-align: center; }
.brand__title{ font-size: 38px; font-weight: 800; letter-spacing: .2px; line-height: 1.1; }
.brand__sub{ font-size: 14px; opacity: .82; margin-top: 4px; line-height: 1.1; }
.right-spacer{ grid-column: 3; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 14px;
  line-height: 1;
  font: inherit;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: #eaf6ff;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  white-space: nowrap;
}
.btn--ghost{ background: rgba(0,0,0,.25); }
.btn:active{ transform: translateY(1px); }
button.btn{ appearance:none; -webkit-appearance:none; }

/* overlay */
.overlay-backdrop{
  position: fixed;
  inset: 0;
  z-index: 30;

  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,.14);
}
.overlay-backdrop.is-open{ display: flex; }

.overlay{
  width: min(420px, calc(100vw - 28px));
  border-radius: 18px;
  background: rgba(10, 14, 22, .72);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}

.overlay__head{
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.overlay__title{
  text-align: center;
  font-weight: 800;
}

.icon-btn{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: #eaf6ff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.icon-btn:active{ transform: translateY(1px); }
.icon-btn--back{ visibility: hidden; }

.overlay__body{ padding: 14px; }
.overlay__body--about{ display: none; }
.overlay__body--menu{ display: grid; gap: 12px; }

.menu-big{
  height: 56px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #eaf6ff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.about-text{ line-height: 1.6; }
.about-text ul{ margin: 8px 0 0 18px; }

/* 우하단 텔레그램 버튼(클릭 영역 고정) */
.tg-fab{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;

  width: 64px;
  height: 64px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 55px rgba(0,0,0,.55);

  text-decoration: none;
  -webkit-tap-highlight-color: transparent;

  overflow: hidden; /* 이미지가 커도 버튼 원 밖으로 못 나가게 */
}

/* 핵심: PNG가 아무리 커도 "버튼 박스 안"에서만 맞춰짐 */
.tg-fab__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* 버튼을 꽉 채움(필요하면 약간 크롭) */ /* [web:74] */
}

/* 원형 PNG/아이콘 느낌 정리 */
.tg-fab__img{
  border-radius: 999px;
}

.tg-fab:hover{ background: rgba(0,0,0,.24); }
.tg-fab:active{ transform: translateY(1px); }

@media (max-width: 520px){
  .brand__title{ font-size: 28px; }
  .brand__sub{ font-size: 10px; }

  .btn--menu{
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 10px;
  }

  .overlay{ width: min(360px, calc(100vw - 28px)); }

  .menu-big{
    height: 58px;
    font-size: 20px;
  }

  .tg-fab{
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
  }
}

