/* first-nickname.css — หน้าต่างตั้งชื่อในเกมครั้งแรก · คู่กับ first-nickname.js
   กรอบ/สี/ปุ่ม มาจากหน้าต่างกลางของเกม (.st-modal/.st-box ใน Stamina/stamina.theme.css + กรอบซากุระใน Theme/sakura-kit.css · .pv-h/.pv-btn)
   ไฟล์นี้จัดแค่ส่วนที่ต่างจากหน้าต่างอื่น: อยู่บนสุด · ความกว้าง · ช่องกรอกชื่อ · แถวปุ่ม */

/* อยู่เหนือหน้าต่างรางวัลล็อกอินที่เด้งพร้อมกัน (.st-modal = 80) — ใช้ 2 คลาสเพื่อชนะ .st-modal ที่โหลดทีหลัง */
.st-modal.fn-modal {
  z-index: 9000;
}
/* 3 คลาส: ชนะกฎจอแนวนอนของหน้าต่างสตามิน่า (.st-modal .st-box แผ่ 2 คอลัมน์ ใน stamina.theme.css) แบบเดียวกับ .cl-modal */
.st-modal.fn-modal .fn-box {
  display: block;
  width: min(420px, 100%);
  text-align: center;
}
.fn-box .pv-h {
  justify-content: center;
}
.fn-box p {
  margin: 0 0 10px;
  font-size: 14px;
}
.fn-box form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* ช่องกรอกแบบเดียวกับหน้าต่างยืนยันลบบัญชี (.pv-dbox input ใน account.theme-2.css) */
.fn-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border-radius: 10px;
  border: 2px solid #d9cfc0;
  background: #fff;
  color: #3b4255;
  text-align: center;
  font:
    700 17px Sarabun,
    sans-serif;
  outline: none;
}
.fn-box input:focus {
  border-color: #e0a521;
  box-shadow: 0 0 0 3px #e0a52144;
}
.fn-err {
  min-height: 1.2em;
  color: #c8424f;
  font:
    normal 700 13px Sarabun,
    sans-serif;
}
.fn-acts {
  display: flex;
  gap: 10px;
}
.fn-acts .pv-btn {
  flex: 1;
  justify-content: center;
}
.fn-acts .pv-btn:disabled {
  opacity: 0.65;
  cursor: default;
}
.fn-note {
  display: block;
  margin-top: 8px;
  color: #7d8394;
  font-size: 12px;
}
@media (max-height: 420px) {
  .fn-box p {
    margin-bottom: 4px;
  }
  .fn-box input {
    padding: 6px 10px;
  }
}
