@font-face {
  font-family: "Fira Sans Extra Condensed";
  src: url("/assets/fonts/fira-sans-extra-condensed-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans Extra Condensed";
  src: url("/assets/fonts/fira-sans-extra-condensed-bold.ttf") format("truetype");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100vh;
  margin: 0;
  background: #ffffff;
  color: #ffffff;
  font-family: "Fira Sans Extra Condensed", "Segoe UI", sans-serif;
}

.stage {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
}

.frame-panel {
  position: relative;
  width: 492px;
  height: 624px;
  background: linear-gradient(180deg, rgb(54, 62, 74) 0%, rgb(26, 29, 33) 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.header-slot {
  position: absolute;
  left: 0;
  top: 0;
  width: 492px;
  height: 111px;
  pointer-events: none;
  z-index: 1;
}

.header-svg {
  position: absolute;
  left: -16.8px;
  top: -12.8px;
  width: 525.6px;
  height: 144.6px;
  display: block;
}

.header-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 48px;
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 19px;
  letter-spacing: 0.02em;
  color: #ffffff;
  z-index: 2;
  pointer-events: none;
}

.border-svg {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 486px;
  height: 617.969px;
  display: block;
  pointer-events: none;
  z-index: 4;
}

.footer-tag {
  position: absolute;
  right: 22px;
  bottom: 27px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 20px;
  font-weight: 400;
  line-height: 19px;
  color: #ffffff;
  z-index: 3;
  pointer-events: none;
}

.footer-version {
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.footer-sep {
  color: rgba(203, 189, 166, 0.72);
}

.footer-logout {
  position: absolute;
  left: 24px;
  bottom: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: "Fira Sans Extra Condensed", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 19px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  z-index: 3;
}

.footer-logout:hover {
  color: #ffffff;
  text-decoration: underline;
}

.view-body,
.panel-form {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.field-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 360px;
}

.field-user {
  position: absolute;
  left: 66px;
  top: 195px;
}

.field-pass {
  position: absolute;
  left: 66px;
  top: 341px;
}

.field-token {
  position: absolute;
  left: 66px;
  top: 264px;
}

.field-label {
  font-size: 20px;
  font-weight: 400;
  line-height: 19px;
  color: #ffffff;
  text-align: center;
}

/* Figma input outer ring (3787:5796 / 3787:5797, 360x65 r20) */
.pill-input-shell {
  position: relative;
  display: block;
  width: 360px;
  height: 65px;
  border-radius: 20px;
}

.pill-input-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 20px;
  background: linear-gradient(
    155deg,
    #cbbda6 0%,
    rgba(203, 189, 166, 0.72) 48%,
    rgba(203, 189, 166, 0.24) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pill-input {
  position: absolute;
  left: 7px;
  top: 7.5px;
  width: 346px;
  height: 50px;
  padding: 0 18px;
  border: 2px solid #cbbda6;
  border-radius: 13px;
  background: #ffffff;
  color: #1a1d21;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  box-shadow:
    0 4px 4px rgba(0, 0, 0, 1),
    inset 2px 7px 21.5px rgba(0, 0, 0, 0.72);
  outline: none;
}

.pill-input:focus {
  border-color: #e6d7bd;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 1),
    0 0 0 2px rgba(203, 189, 166, 0.35),
    inset 2px 7px 21.5px rgba(0, 0, 0, 0.65);
}

/* Figma PLAY button: outer ring (3787:5795, 260x63 r17) + inner pill (3787:5793, 248x50 r13) */
.play-btn-shell {
  position: absolute;
  left: 116px;
  top: 471px;
  width: 260px;
  height: 63px;
  border-radius: 17px;
  z-index: 3;
}

.play-btn-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 17px;
  background: linear-gradient(
    155deg,
    #cbbda6 0%,
    rgba(203, 189, 166, 0.72) 48%,
    rgba(203, 189, 166, 0.24) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.play-btn {
  position: absolute;
  left: 6px;
  top: 6.5px;
  width: 248px;
  height: 50px;
  padding: 0;
  border: 2px solid #cbbda6;
  border-radius: 13px;
  background: linear-gradient(
    179.43deg,
    rgb(47, 54, 59) 2.08%,
    rgb(23, 30, 34) 97.36%
  );
  color: #ffffff;
  font-family: "Fira Sans Extra Condensed", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: 0.03em;
  box-shadow:
    0 4px 4px rgba(0, 0, 0, 1),
    inset 2px -1px 21.5px 0 rgba(0, 0, 0, 1);
  cursor: pointer;
  transition: filter 140ms ease, transform 140ms ease;
}

.play-btn:hover {
  filter: brightness(1.18);
}

.play-btn:active {
  transform: translateY(1px);
  filter: brightness(1.06);
}

.ready-center {
  position: absolute;
  left: 73px;
  top: 252px;
  width: 346px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.balance-value {
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
}

.link-btn {
  border: 0;
  background: transparent;
  color: #cbbda6;
  font-family: "Fira Sans Extra Condensed", sans-serif;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  padding: 2px 6px;
}

.link-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

.sub-link {
  position: absolute;
  left: 50%;
  top: 368px;
  transform: translateX(-50%);
}

.panel-msg {
  position: absolute;
  left: 36px;
  right: 36px;
  top: 441px;
  margin: 0;
  min-height: 20px;
  font-size: 17px;
  line-height: 20px;
  text-align: center;
  color: #ffffff;
  pointer-events: none;
}

.msg.error {
  color: #ff8c85;
}

.msg.ok {
  color: #96e89a;
}

@media (max-width: 540px) {
  .frame-panel {
    transform: scale(0.84);
    transform-origin: center;
  }
}
